Linux kernel (Raspberry Pi) vulnerabilities
Published: Mon, 20 Apr 2026 09:57
Summary
Several security issues were fixed in the Linux kernel.
Details
Qualys discovered that several vulnerabilities existed in the AppArmor Linux kernel Security Module (LSM). An unprivileged local attacker could use these issues to load, replace, and remove arbitrary AppArmor profiles causing denial of service, exposure of sensitive information (kernel memory), local privilege escalation, or possibly escape a container. (LP: #2143853) Several security issues were discovered in the Linux kernel. An attacker could possibly use these to compromise the system. This update corrects flaws in the following subsystems: - x86 architecture; - GPIO subsystem; - GPU drivers; - BTRFS file system; - XFRM subsystem; - IPv4 networking; - IPv6 networking; - MAC80211 subsystem; - SMC sockets; (CVE-2021-47599, CVE-2022-48875, CVE-2022-49072, CVE-2024-49927, CVE-2024-56640, CVE-2025-21780, CVE-2025-40215)
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu bionic
linux-raspi-5.4→5.4.0-1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-5.4
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-buildinfo-5.4.0-1139-raspi→5.4.0-1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-buildinfo-5.4.0-1139-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-headers-5.4.0-1139-raspi→5.4.0-1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-5.4→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-5.4 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-hwe-18.04→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-hwe-18.04-edge→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-5.4.0-1139-raspi→5.4.0-1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-5.4→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-5.4 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-hwe-18.04→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-hwe-18.04-edge→5.4.0.1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-modules-5.4.0-1139-raspi→5.4.0-1139.152~18.04.1kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-modules-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-raspi-5.4→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-5.4
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-5.4-headers-5.4.0-1139→5.4.0-1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-5.4-headers-5.4.0-1139
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-5.4-tools-5.4.0-1139→5.4.0-1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-5.4-tools-5.4.0-1139
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-hwe-18.04→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-hwe-18.04-edge→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-5.4.0-1139-raspi→5.4.0-1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-5.4.0-1139-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-5.4→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-5.4
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-hwe-18.04→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-hwe-18.04-edge→5.4.0.1139.152~18.04.1apt_upgradeStandard apt upgrade. Install 5.4.0.1139.152~18.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu focal
linux-raspi→5.4.0-1139.152apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-buildinfo-5.4.0-1139-raspi→5.4.0-1139.152apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-buildinfo-5.4.0-1139-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-headers-5.4.0-1139-raspi→5.4.0-1139.152kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-5.4→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-5.4 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-hwe-18.04→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi-hwe-18.04-edge→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi2→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi2 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi2-hwe-18.04→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi2-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-headers-raspi2-hwe-18.04-edge→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-headers-raspi2-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-5.4.0-1139-raspi→5.4.0-1139.152kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-5.4→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-5.4 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-hwe-18.04→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi-hwe-18.04-edge→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi2→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi2 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi2-hwe-18.04→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi2-hwe-18.04 sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-image-raspi2-hwe-18.04-edge→5.4.0.1139.170kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-image-raspi2-hwe-18.04-edge sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-modules-5.4.0-1139-raspi→5.4.0-1139.152kernel_rebootKernel package — apt-upgrade then REBOOT to load the patched kernel.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-modules-5.4.0-1139-raspi sudo reboot
Reboot is required. ~30-60s downtime; containers self-restart.
linux-raspi→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-5.4→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-5.4
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-headers-5.4.0-1139→5.4.0-1139.152apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-headers-5.4.0-1139
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-hwe-18.04→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-hwe-18.04-edge→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi-tools-5.4.0-1139→5.4.0-1139.152apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi-tools-5.4.0-1139
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi2→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi2
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi2-hwe-18.04→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi2-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-raspi2-hwe-18.04-edge→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-raspi2-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-5.4.0-1139-raspi→5.4.0-1139.152apt_upgradeStandard apt upgrade. Install 5.4.0-1139.152 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-5.4.0-1139-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-5.4→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-5.4
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-hwe-18.04→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi-hwe-18.04-edge→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi2→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi2
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi2-hwe-18.04→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi2-hwe-18.04
Most apt upgrades restart their service automatically. needrestart lists anything else.
linux-tools-raspi2-hwe-18.04-edge→5.4.0.1139.170apt_upgradeStandard apt upgrade. Install 5.4.0.1139.170 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y linux-tools-raspi2-hwe-18.04-edge
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8098-10?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8098-10 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
References
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.