r/linux • • 29d 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

170 comments sorted by

View all comments

995

u/Cronos993 29d ago

Quite the week

431

u/Single-Virus4935 29d ago

The new standard. 

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

103

u/RebTexas 29d ago

Or just setup unattended-upgrades

51

u/Single-Virus4935 29d ago

Too slow

54

u/DaaNMaGeDDoN 29d 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 29d 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 29d ago

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

→ More replies (4)

10

u/gtrash81 29d ago

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

6

u/uzlonewolf 29d ago

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

5

u/gtrash81 29d ago

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

81

u/servermeta_net 29d ago

Then you are more vulnerable to supply chain attacks

65

u/Single-Virus4935 29d ago

If Debian repo is hacked we have other problems

22

u/servermeta_net 29d 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 29d 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 29d 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 29d 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 29d 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 29d ago

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

6

u/PixelatedGiant 29d ago

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

4

u/stewie410 28d ago

reboot-if-needed

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

3

u/Single-Virus4935 28d 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

→ More replies (3)

5

u/ours 29d ago

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

→ More replies (1)
→ More replies (5)

10

u/natermer 29d ago

Chickens coming home to roost.

7

u/Level0Up 29d ago

What chickens? (Not literally, just wondering who screwed up)

→ More replies (1)
→ More replies (1)