CVE-2026-99847
Last modified
CVE-2026-99847 is a vulnerability of currently unknown severity. 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.
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= d8ea44f6090c087fe255d9512fb808574b4d88e8, < a20f98ffe158ea5eeb9932a3badbce267cd04917; >= b1aea2c1960771a276d7e68c7424168eccd0c3da, < 43aba2eeaa34e045bdd73abfe66c8bd3fed97852; >= b1aea2c1960771a276d7e68c7424168eccd0c3da, < a913281f600157aa036b7c02afbb18a0ac115187; d680472db98823d90fc91362910901e468269318; >= 6.18.40, < 6.18.63; >= 7.1.5, < 7.2 |
| Linux | Linux | 7.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99847?
How severe is CVE-2026-99847?
How do I fix CVE-2026-99847?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99841In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99842In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99843In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99844In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99845In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99846In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99848In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99849In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9985Insufficient validation of untrusted input in Media in Googl…5.3
- CVE-2026-99850In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99851In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-99852In the Linux kernel, the following vulnerability has been re…8.1
Are you affected by CVE-2026-99847?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
