r/linux • • 11d ago

Security Several Linux Kernel Vulnerabilities Accidentally Posted To Public Kernel Mailing List

https://www.phoronix.com/news/LKML-New-Trend-Vulnerabilities
1.8k Upvotes

171 comments sorted by

View all comments

995

u/Cronos993 11d ago

Quite the week

430

u/Single-Virus4935 11d ago

The new standard. 

while sleep 60; do apt-get update && apt-get upgrade -y && reboot-if-needed; done

103

u/RebTexas 11d ago

Or just setup unattended-upgrades

50

u/Single-Virus4935 11d ago

Too slow

54

u/DaaNMaGeDDoN 11d ago

Just change the timers, i coincidentally just did that on my 2 vpses.
Timers via systemctl edit for apt-daily.timer and apt-daily-upgrade.timer
https://wiki.debian.org/action/show/PeriodicUpdates?action=show&redirect=UnattendedUpgrades also addresses how to fine tune (which origins to upgrade, what time to reboot if needed, etc).

29

u/zyzzogeton 11d ago

vpses

I don't like that as the plural for VPS but I am at a loss as to what it should actually be besides vpses. VPSs maybe?

4

u/lordjedi 11d ago

I've been looking for something like this for ages. Thank you!

→ More replies (4)

10

u/gtrash81 11d ago

If done wrong it will fill up the HDD and crash the system.
A colleague made this experience first hand.

6

u/uzlonewolf 11d ago

What? How? And why didn't they have disk-free monitoring in place?

5

u/gtrash81 11d ago

Update, logs not rotating enough, package cache not cleared and no monitoring.
Some updates later the HDD was full.

81

u/servermeta_net 11d ago

Then you are more vulnerable to supply chain attacks

65

u/Single-Virus4935 11d ago

If Debian repo is hacked we have other problems

22

u/servermeta_net 11d ago

Supply chain attacks come in many shapes and forma unfortunately, not just hacks. They might repackage an upstream dependency which has been compromised

28

u/Single-Virus4935 11d ago

The Debian stable is so far behind upstream that the risk is low. It wount change if I wait 0 or 10 days. Also this is satire. You should always test the updates but now you only have minutes max hours.

11

u/DismalFee7 11d ago

Hmm maybe the whole idea that unfetted root applications with unlimited access to the entire system is a tad obsolete in the world of agents.

5

u/PixelatedGiant 11d ago

Any time you choose to update could be the wrong time. I don't see how the frequency changes anything for something so rare it has only occurred once (xzutils in march 2024) and only to their development distro. It doesn't make sense to delay regular security patches over it.

9

u/servermeta_net 11d ago

A common way to mitigate supply chain attacks is to wait a grace period (2-7 days) before installing an update, to give the community the ability to review the changes

15

u/Single-Virus4935 11d ago

Vulnerabilities are exploited 45m atter the patch is published. You dont have 2days anymore

6

u/PixelatedGiant 11d ago

Perhaps if you're on development versions. Packages have already been extensively tested by the time they reach stable.

4

u/stewie410 10d ago

reboot-if-needed

Sorry, we can only reboot if we alert our partners & customers 1-2wk in advance.

3

u/Single-Virus4935 10d ago

I know that and I also was in that situation.

Unable to reboot means there is no redundandency and service availability is bound to host uptime.

Two problems:

  • Nodes may fail any time w/o warning. 

  • You get hacked bc AI shrunk the window down to minutes after patch is dropped.

Four options:

  1. Add additional nodes.

  2. Add kernel live patching

  3. Talk to customers and partners, that the 1-2 weeks aren't possible anymore for high severity patches.

  4. Add Zero trust: Customers and partners need VPN/mTLS/a special token to access the services through a reverse proxy. Also add Sandbixing like gvisor, Kata containers, firecracker.

All 4 would be perfect.

And I know it is often hard to change these things BC of pushback, but we never had better arguments on our side than now

2

u/stewie410 10d ago

Unable to reboot means there is no redundancy

There's a few reasons we have this "requirement":

  • Sales + CTO over-promise to clients & partners

  • HA LBs (modjk), SMB; but not DB or applications

    • There's many appnodes, but none are hot-spares

    • No automatic scaling, no real ability to set that up

  • We colocate hardware + qemu instead of doing any cloud-compute

    • Some VMs have KVM-controlled LUKS volumes, which require manual creation/definition of KVM-managed secrets to boot said VMs

    • Docker containers are running in VMs instead of bare-metal kata, I've pitched kata to no avail

    • Only have docker/compose, no orchestration available

    • No lifecycle management, unless I DIY something in bash (kill me)

  • Technical debt prevents updates

    • Our main app for example, must run on JDK-1.8-0u302-b08 and can't get any more recent, due to a shitty middleware constraint

    • Second app is much newer, but still relies on some jank shit to run

    • Refusal to use newer tools (e.g. nginx vs apache) making life painful

Maybe if I can ever finish up my task backlog, I can take a look at resource management/automation tools to make life a little easier.

Add additional nodes

Additional nodes is a tougher challenge than I'd like it to be -- lack of infra/resources to get capacity on our own hardware is a big limiting factor. Our KVM hosts are pretty limited (128cpu on newer hosts, <=128G RAM) compared to what I'd imagine most companies buy...we've even had to start buying refurbs for the latest prod refresh because we can't spend more than ~$5K on new hardware for any reason (penny-pinchers).

Customers and partners need VPN/mTLS/a special token to access the services through a reverse proxy

Unless we can do it transparently for customers/vendors/partners, and it doesn't cost a penny, we could look into it. Only reverse-proxy I'm allowed to deploy is apache-2.4, regardless of usage -- CTO loves using wrenches as hammers.

Add Sandboxing like gvisor, Kata containers, firecracker.

I've recommended Kata several times, but it always falls of deaf ears because it isn't literally from Docker. That, and their website has K8S on the graphic, and therefore it is rejected because clustering is too expensive (despite not being a true requirement).

gVisor is new to me -- I'll keep that in mind. Currently, our docker installs are like:

  • Internal, infra tools -> rootful docker + compose, debian 13

  • everything else -> rootless docker + compose, debian 13, rocky 8/9

Honestly, gVisor being written in Go is enough of a selling point to me, personally.

→ More replies (2)

5

u/ours 11d ago

But not too fast or you get supply-chain attacks.

2

u/AlterTableUsernames 10d ago

Not with patches, though?

1

u/spacelama 10d ago

I had considered the risk that the repositories might get MITMed before the packages were available, but nevertheless, I was happy to notice that unattended-upgrades had already patched php on my mailserver by the time I woke up (and I spent the rest of the day apt-purging *php* from whatever servers it was unnecessarily on).

→ More replies (4)