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. ...