CVE-2023-0386: an OverlayFS bug that hands local users root on Linux

If you’ve got Ubuntu 22.04 or RHEL 8/9 servers that skipped kernel updates in 2023, read on. At a glance CVE: CVE-2023-0386 Severity: 7.8 (High) on NVD. Red Hat rates it Important and scores it 7.0. It’s local: the attacker has to be running code on the box first. Affected: Linux 5.11 up to (but not including) 5.15.91 and 6.1.9, plus early 6.2. On the distro side, that’s Ubuntu 22.04 (and 22.10), Debian 10 and 11, RHEL 8.6 onwards and RHEL 9. Ubuntu 18.04 and 20.04 and RHEL 7 aren’t affected. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2025-06-17. What’s going on OverlayFS stacks one filesystem on top of another. It’s what lets container images share layers, among other things. When you change a file that lives in a lower layer, OverlayFS “copies it up” into the writable upper layer first. ...

March 29, 2023 · 3 min · Harshvardhan Malpani

CVE-2022-2586: a 2022 nf_tables bug that CISA now lists as exploited

The CVE number says 2022, the NVD date says 2024, and CISA says it’s being exploited. Here’s the story. At a glance CVE: CVE-2022-2586 Severity: depends who you ask. NVD scores it 7.8 (High). Canonical, which assigned the CVE, gave it 5.3 (Medium), and Red Hat rates it Moderate (6.7). They all agree it’s a local bug: the attacker has to be running code on the machine first. Affected: Linux from 3.16 up to (but not including) 4.14.316, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18 and 5.19.2. Red Hat says RHEL 6 and 7 aren’t affected; RHEL 8 and 9 were. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2024-06-26. What’s going on nf_tables is the engine behind nftables, the modern Linux firewall. Rules live in tables, and tables can hold sets (lists of addresses, ports and so on). The bug: a rule object or expression in one table could point at a set in a different table. Delete that other table and the reference keeps pointing at memory that’s been freed. That’s a use-after-free, and attackers can often turn those into running code inside the kernel. ...

August 16, 2022 · 3 min · Harshvardhan Malpani

CVE-2022-0995: a watch_queue bug in Linux 5.8+ that CISA now says is exploited

Another 2022 kernel bug that’s resurfaced on CISA’s list. This one only touches newer (5.8+) kernels. At a glance CVE: CVE-2022-0995 Severity: 7.8 (High) on NVD, and Red Hat rates it Important. It’s local only: the attacker has to be running code on the box first. Affected: Linux 5.8 up to (but not including) 5.10.106 and 5.15.29, plus early 5.17, according to NVD. Red Hat says none of the RHEL kernels it shipped were affected, and Debian 9 and 10 don’t have the vulnerable code. Debian 11 was affected. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2026-08-26, more than four years after the fix, and gave US federal agencies until 2026-08-29 to act. That’s three days. What’s going on watch_queue is a fairly new kernel feature (it arrived in 5.8) that lets programs receive notifications about kernel events through a pipe. You can attach a filter to say which events you care about. The code that checked those filters got its limit check wrong, so a user could set up a filter that made the kernel write outside the memory it had set aside. ...

April 1, 2022 · 3 min · Harshvardhan Malpani

CVE-2022-0492: the cgroups bug that can let a container escape to the host

If you run containers on older kernels, this one’s about how well your container walls hold up. At a glance CVE: CVE-2022-0492 Severity: 7.8 (High) on NVD. Red Hat rates it Important and scores it 7.0. It’s local: an attacker needs to be running code first, typically as root inside a container. Affected: Linux from 2.6.24 up to (but not including) 4.9.301, 4.14.266, 4.19.229, 5.4.177, 5.10.97, 5.15.20 and 5.16.6, plus early 5.17. Ubuntu 22.04 and newer and RHEL 9 aren’t affected. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2026-06-02, more than four years after disclosure, and gave US federal agencies just three days to deal with it. What’s going on Linux cgroups (control groups) are how the kernel limits and tracks resources for groups of processes. They’re one of the building blocks of Docker and Kubernetes. The older cgroups v1 has a feature called release_agent: a program the kernel runs, with full root privileges, when a cgroup empties out. ...

February 11, 2022 · 3 min · Harshvardhan Malpani

CVE-2022-0185: a Linux filesystem bug that turns a container foothold into root

This one’s mostly about 5.x kernels, and the people who found it used it to break out of containers. At a glance CVE: CVE-2022-0185 Severity: 8.4 (High) on NVD. Red Hat scores it 7.8 and rates it Important. It’s local: the attacker has to be running code on the box first. Affected: Linux 5.1 up to (but not including) 5.4.173, 5.10.93, 5.15.16 and 5.16.2. Kernels older than 5.1 never had the bug, so Debian 9 and 10, Ubuntu 18.04 and RHEL 7 aren’t affected. Ubuntu 20.04, Debian 11 and RHEL 8.4 onwards were. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2024-08-21. Working exploits were public from the start. What’s going on When something mounts a filesystem, the kernel collects the mount options through what it calls the “filesystem context” API. Filesystems that don’t support that newer API fall back to a legacy parser, legacy_parse_param(). Its length check used an unsigned subtraction that could wrap around to a huge number. A carefully sized option string then slipped past the check, and the kernel wrote past the end of a one-page heap buffer. ...

January 25, 2022 · 3 min · Harshvardhan Malpani

CVE-2021-22555: a 15-year-old Netfilter bug that can break out of containers

If you run Docker hosts or Kubernetes nodes on older kernels, give this one a look. At a glance CVE: CVE-2021-22555 Severity: 7.8 (High) on NVD. Google, which assigned the CVE, scored it 8.3 with a slightly different (adjacent-network) vector, and Red Hat rates it Important. Either way, it’s a local bug: an attacker has to be running code on the machine first. Affected: Linux from 2.6.19 up to (but not including) 4.4.267, 4.9.267, 4.14.231, 4.19.188, 5.4.113 and 5.10.31, and 5.11 before 5.12. Red Hat says RHEL 7 and 8 were affected (on RHEL 7 only privileged users can reach the bug) and RHEL 9 isn’t. Ubuntu 22.04 and newer aren’t affected. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2025-10-06, more than four years after it was disclosed. Public exploit code has been around since 2021. What’s going on Netfilter is the kernel’s firewall plumbing, the part iptables talks to. When a 32-bit program on a 64-bit kernel sets up iptables rules, the kernel converts the request between the 32-bit and 64-bit formats. That conversion got a buffer size wrong, so it wrote a few bytes of zeros past the end of a heap allocation. ...

July 14, 2021 · 3 min · Harshvardhan Malpani

CVE-2018-14634 (Mutagen Astronomy): a 2018 Linux root bug that CISA flagged in 2026

Here’s another oldie that’s turned up on CISA’s exploited list. Worth a quick check if you run long-lived RHEL or CentOS servers. At a glance CVE: CVE-2018-14634. Qualys, who found it, named it “Mutagen Astronomy”. Severity: 7.8 (High) on NVD, and Red Hat rates it Important. It’s a local bug: the attacker has to be able to run programs on the box already. Affected: in practice, 64-bit kernels that have a 2007 change but are missing a July 2017 upstream fix (commit da029c11e6b1, which caps how much stack the arguments can use). Qualys said most distros had already backported that fix, but RHEL, CentOS and Debian 8 “jessie” hadn’t. Red Hat lists RHEL 6 and 7 as affected; RHEL 5 and 8 aren’t. Ubuntu 18.04 and newer aren’t affected. NVD’s ranges point at 2.6.x, 3.10.x and 4.14.x kernels, and also list Palo Alto Networks and F5 appliances that ship affected kernels. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2026-01-26, more than seven years after it was disclosed. What’s going on When you start a program, the kernel copies its command-line arguments and environment variables onto the new program’s stack. A function called create_elf_tables() counts them up in a plain int. Pass it a ridiculous number of arguments (around two billion) and that count overflows and goes negative. The kernel then puts the stack pointer in the wrong place, right in the middle of the attacker’s own strings. ...

October 2, 2018 · 3 min · Harshvardhan Malpani

CVE-2017-1000253: the old Linux PIE bug that still turns a foothold into root

If you still look after an old CentOS or RHEL 6/7 box, this one’s for you. At a glance CVE: CVE-2017-1000253. Qualys, who found it, called it “Linux PIE/stack corruption”. Severity: 7.8 (High) on NVD, and Red Hat rates it Important. That score assumes the attacker already has a local account, though. Nobody can fire this at your server over the internet. Affected: any kernel that never picked up a fix from April 2015. Upstream, that’s 2.6.25 up to (but not including) 3.10.77, 3.12.43, 3.14.41, 3.16.35, 3.18.14, 3.19.7 and 4.0.2, plus the old 3.2 and 3.4 branches. In practice, Qualys says the big ones were every version of CentOS 6 and RHEL 6, CentOS 7 before 1708, and RHEL 7 before 7.4. Ubuntu 16.04 and newer were never affected. Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2024-09-09, and says it’s known to be used in ransomware campaigns. What’s going on When Linux starts a program, the kernel lays its pieces out in memory and leaves a gap between the program and its stack. For position-independent executables (PIEs), it didn’t reserve enough room for the whole binary. A program with a big enough data segment could end up partly mapped on top of its own stack, so the two would overwrite each other. ...

October 3, 2017 · 4 min · Harshvardhan Malpani