Linux Kernel With Known Privilege Escalation Vulnerabilities

The running Linux kernel has publicly known flaws that let a local user gain root, because kernel updates are missing or the host has not been restarted into them.

SeverityHigh
CVSS 3.17.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Open in the calculator
CVSS 4.08.5 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Open in the calculator
CWECWE-1395: Dependency on Vulnerable Third-Party Component
OWASP Top 10A03:2025 Software Supply Chain Failures
MITRE ATT&CKT1068 Exploitation for Privilege Escalation
CategoryOutdated Components

Description

The host runs a Linux kernel affected by one or more publicly disclosed vulnerabilities that allow a local, unprivileged user to gain root privileges. Any user who can run code on the host, including through a compromised web application, service account or container, can therefore become root and take full control of it: reading and changing all data, harvesting credentials and keys, installing persistence such as malicious kernel modules, and disabling security tools and logging. Because containers share the host's kernel, some of these flaws can also be used to escape from a container to the host.

Kernel flaws of this kind are found regularly, in areas such as memory management, file systems, networking subsystems and namespaces, and many have public exploits. Well-known examples are Dirty COW (CVE-2016-5195), Dirty Pipe (CVE-2022-0847) and the nf_tables use-after-free CVE-2024-1086, all of which appear in the CISA Known Exploited Vulnerabilities catalogue. Exploitation needs the ability to run code locally, which is why the issue is usually rated high rather than critical, but reliable public exploits make it straightforward once that is obtained.

A common cause is that kernel updates have been installed but the host has not been restarted, so the vulnerable kernel is still running. Others are distributions or kernel series that no longer receive updates, vendor kernels on appliances that are not updated through the normal package channels, and live patching that covers only some flaws. The weakness is identified by comparing the running kernel (uname -r) with the distribution's security advisories, through an authenticated vulnerability scan, or with tools such as linux-exploit-suggester. Findings are confirmed against the vendor's advisories, because distributions often backport fixes without changing the upstream version number.

Remediation

Install the distribution's kernel security updates and make sure the patched kernel is the one running:

  • Update the kernel package through the distribution's package manager, such as apt, dnf or zypper, and restart the host so that the new kernel is loaded. Check afterwards that uname -r reports the patched version.
  • Schedule regular maintenance windows for kernel updates and restarts, and report hosts whose running kernel is older than the newest installed one, for example with needs-restarting -r on Red Hat based systems or the /var/run/reboot-required file on Ubuntu.
  • Where restarts must be rare, use the vendor's live patching service, such as Ubuntu Livepatch, Red Hat kpatch or SUSE Live Patching, as an interim measure, while still restarting into fully updated kernels periodically.
  • Replace distributions and kernel series that no longer receive security updates.
  • Reduce exposure while patching: restrict shell access and local code execution to those who need it, keep containers unprivileged, and consider restricting unprivileged user namespaces, which many recent kernel exploits rely on, where applications do not need them (for example through the user.max_user_namespaces sysctl or the distribution's own controls).
  • Prioritise flaws listed in the CISA Known Exploited Vulnerabilities catalogue.

Confirm the fix by checking the running kernel version against the vendor's advisories and repeating the vulnerability scan.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Windows and Linux Hosts Findings

Every Windows and Linux Hosts finding