Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| Removing the meta-package removes no kernel: the old ones stay installed as a | ||
| fallback in GRUB's "Advanced options" until someone purges them. Check what a |
There was a problem hiding this comment.
Nit (verify before relying on it): "the old ones stay installed ... until someone purges them" is not guaranteed on these boxes. roles/common/tasks/main.yml:264-265 sets Unattended-Upgrade::Remove-Unused-Kernel-Packages "true" and Remove-Unused-Dependencies "true". Once linux-generic-6.17 is gone, any 6.17 kernel that was pulled in as an automatic dependency (the PR says 6.17.0-42 was) is auto-removable, and unattended-upgrades can purge it on its next run, as long as it is not the running kernel. Only kernels marked manual, such as 6.17.0-23, are safe. The fallback in GRUB therefore probably ends up as just 6.17.0-23 (the April build). That is still a bootable fallback, but the text should say so, or the settings should be changed if you want to keep more than one kernel. Check apt-mark showmanual | grep linux-image on a box, and apt-get -s autoremove, to see which ones are exposed.
Claude reviewThe change is small and sound: it installs Findings
claude-sonnet-5-5 at high effort · requested by TakGN · re-run with |
Comes out of a read-only security review of the boxes (2026-11-16).
Why
sing-1, lith-1 and chic-1 run kernel
6.17.0-23-generic(built 2026-04-14), from Ubuntu'slinux-hwe-6.17. Ubuntu marks that line end of life and will not fix it; CVE-2026-98432 is listed there as "Ignored: end of life, was needed" (ubuntu.com/security/CVE-2026-98432, last updated 2026-11-14). The nft filter keeps that one CVE out, but no other kernel fix since April is on the boxes either.A reboot does not help today. Read on all three on 2026-11-16 (
dpkg -l,/etc/default/grub):linux-generic-6.17, a meta-package that only ever follows 6.17. It has since pulled in6.17.0-42, also unfixed.linux-generic(6.8 GA, fixed in6.8.0-149) is installed too, but GRUB boots the highest installed version (GRUB_DEFAULT=0), so a reboot lands on6.17.0-42.linux-generic-hwe-24.04, the meta-package that follows the HWE line, is not installed. Its candidate is7.0.0-43.43~24.04.1, fixed for CVE-2026-98432 per Ubuntu's tracker.Change
roles/common/defaults/main.yml:common_kernel_packages(Ubuntu:linux-generic-hwe-24.04) andcommon_kernel_packages_absent(Ubuntu:linux-generic-6.17), with the reasoning.roles/common/tasks/main.yml: install the first, remove the second (meta-package only, no autoremove, no purge), right after the base packages. Debian (the indexers) has neither key, so both tasks skip there.README.md: "Which kernel the IPFS boxes boot" under "Package updates and reboots", and a line in the CVE-2026-98432 section saying which kernel is the fixed one.Why HWE 7.0 and not back to 6.8 GA: the boxes have been on the HWE kernels, 7.0 is the last HWE line 24.04 gets (26.04's kernel), so it won't roll again, and it is published in
noble-security, so unattended-upgrades keeps it patched. 6.8 GA would also be fixed and is the more conservative choice; it would mean removing the 6.17 images instead, including the running one. Say if you prefer it.What the first run does
From
apt-get -s install linux-generic-hwe-24.04on sing-1 (simulation, nothing installed): installslinux-image-7.0.0-43-genericwith its modules, headers and tools, andlibllvm19; all fromnoble-security.apt-get -s remove linux-generic-6.17removes only that meta-package./has 822G free.No reboot. The new kernel waits, like every kernel here. The 6.17 kernels stay installed as a fallback in GRUB's Advanced options (
linux-image-6.17.0-23-genericis marked manual, so autoremove won't take it either).Checked
ansible-playbook --syntax-check site.ymlandplatform.ymlpass.Not checked: a real
site.ymlrun; booting 7.0 on this hardware (Intel E810, Micron 7450/7500 NVMe, all with in-tree drivers).After merging
site.ymlrun (after approval) installs the kernel on all three, one box at a time. Thenls -1 /boot/vmlinuz-* | sort -V | tail -1should show7.0.0-43or later.uname -r, the pods, and the box's endpoints.cve_2026_98432_mode: offfor that group. This PR covers only the IPFS boxes. indexers-chic1 already runs a fixed Debian kernel (6.12.115; Debian fixed it in 6.12.113), and sf and sf2 run 6.1.190, which is fixed too.🤖 Generated with Claude Code