CVE-2026-99847
apparmor: don't revalidate inherited files under files->file_lock
Check your servers for CVE-2026-99847
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99847 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
apparmor: don't revalidate inherited files under files->file_lock
aa_inherit_files() revalidates inherited files on exec using iterate_fd(), which calls the callback with files->file_lock held, so the revalidation is done with IN_ATOMIC. However the unix socket mediation path can sleep: aa_unix_file_perm() drops a ref on the peer's path with path_put(), and unix_fs_perm() -> aa_path_perm() allocates a buffer with aa_get_buffer(false), resulting in
BUG: sleeping function called from invalid context at fs/dcache.c:1039 ... dput.part.0+0x24/0x180 path_put+0x2c/0x60 aa_unix_file_perm+0x42a/0x17b0 aa_file_perm+0xcd3/0x1060 match_file+0x10b/0x190 iterate_fd+0xe6/0x280 aa_inherit_files+0x250/0x4f0
Only grab a ref on each file under iterate_fd(), and revalidate it after the lock is dropped, so revalidation is done with no locks held and does not need to be atomic. Denied fds are still replaced with /dev/null, or closed if it can not be opened.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d8ea44f6090c087fe255d9512fb808574b4d88e8, before a20f98ffe158ea5eeb9932a3badbce267cd04917 affected from b1aea2c1960771a276d7e68c7424168eccd0c3da, before 43aba2eeaa34e045bdd73abfe66c8bd3fed97852 affected from b1aea2c1960771a276d7e68c7424168eccd0c3da, before a913281f600157aa036b7c02afbb18a0ac115187 affected d680472db98823d90fc91362910901e468269318 affected from 6.18.40, before 6.18.63 affected from 7.1.5, before 7.2
Other versions: unaffected
|
| Linux |
affected 7.2 unaffected before 7.2 unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99847 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99847
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99847
trivy image --scanners vuln IMAGE | grep CVE-2026-99847
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917 git.kernel.org
- https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852 git.kernel.org
- https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187 git.kernel.org
Source: the record CVE-2026-99847 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse