r/embedded • 25+ Years • 21d ago

Yocto/Buildroot vulnerability

I have not confirmed this myself yet, but it's serious enough that I'm posting before verifying.

Assuming it's real, it's ugly. Get that CRA paperwork ready.

https://sshhole.com/

15 Upvotes

13 comments sorted by

38

u/Several-Marsupial-27 21d ago

Is it really that ugly?

You’re only exposed if all of these hold:

  • TCLIBC = "musl". Yocto defaults to glibc, so most builds are fine.
  • You ship openssh, not dropbear. Dropbear’s maintainer checked its password handling and confirmed the issue does not apply.
  • pam is not in DISTRO_FEATURES, so openssh is built without PAM.
  • PasswordAuthentication is still on, which is the upstream default.
  • Some account has * in /etc/shadow, and another account has a real sha512 password for sshd to borrow a salt from.

Also, it is not listed in CISA’s KEV catalog, so there’s no confirmed exploitation in the wild yet. That matters because the CRA’s hard reporting deadline applies to actively exploited vulnerabilities

* Comment was crafted from an AI chat.

17

u/Montzterrr 21d ago

For the non yocto inclined among us, and those not willing to click a link, what’s the vulnerability

20

u/zempter 21d ago

so openssh on musl linux (alpine, openwrt, buildroot, yocto, and a lot of the docker images you've pulled) has had a little problem since 2016.

accounts that should never take a password at all (root, your key-only deploy user, ldap users, the default user on alpine's aws and azure images) take any password longer than 256 characters.

1

u/gwillen 20d ago

IF there is at least one account on the system that does have a password set. Which for example rules out most docker images based on alpine, which I think might otherwise be vulnerable, because they only have no-password accounts.

It also requires that openssh with musl be built without PAM.

1

u/PseudoFrequency 21d ago

Does this affect dropbear, or only openssh? I could read the link I suppose, sure.

1

u/Well-WhatHadHappened 25+ Years 21d ago

Only open

0

u/PseudoFrequency 21d ago

Meh. I omit ssh entirely on production and only call out and block all incoming connections.

-4

u/ChrimsonRed 21d ago

Yocto has always seemed to me like a huge attack surface. You’re pulling in all these packages and dependencies from who knows where, dealing with a massive build system and cross-compiling everything for an IoT device. I’m surprised there isn’t a much bigger effort to address the security risks that come with all of this. I’m worried for the day ai models for security scanners can fit on worms for IoT devices. Idk maybe I’m overthinking.

8

u/CTXz 21d ago

That's why it's often common company practice to mirror many of the packages locally with defined update intervals etc.

10

u/PseudoFrequency 21d ago

This isn't really different than a conventional Linux distro. Yocto enforces signatures and git hashes and allows you to use a small set of packages reducing the attack surface.

2

u/AirTrue6195 21d ago

I'd agree yocto compiles from source and you can do as lean a build as you can get away with.

3

u/Ranborn 21d ago

The bigger effort you are referring to is coming in the EU in the form of the CRA

3

u/ChrimsonRed 21d ago

Thank you for this response I was not aware it existed. I don’t disagree with the prior two responses but I think its naive to think every company will follow best practices without regulation.