CVE-2026-99847

Source
https://cve.org/CVERecord?id=CVE-2026-99847
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99847.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99847
Downstream
Published
2026-11-30T13:17:36Z
Modified
2026-11-30T15:02:31Z
Summary
apparmor: don't revalidate inherited files under files->file_lock
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99847.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d8ea44f6090c087fe255d9512fb808574b4d88e8
Fixed
a20f98ffe158ea5eeb9932a3badbce267cd04917
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b1aea2c1960771a276d7e68c7424168eccd0c3da
Fixed
43aba2eeaa34e045bdd73abfe66c8bd3fed97852
Fixed
a913281f600157aa036b7c02afbb18a0ac115187
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d680472db98823d90fc91362910901e468269318

Affected versions

v6.*
v6.18.40
v6.18.41
v6.18.42
v6.18.43
v6.18.44
v6.18.45
v6.18.46
v6.18.47
v6.18.48
v6.18.49
v6.18.50
v6.18.51
v6.18.52
v6.18.53
v6.18.54
v6.18.55
v6.18.56
v6.18.57
v6.18.58
v6.18.59
v6.18.60
v6.18.61
v6.18.62
v7.*
v7.1.10
v7.1.11
v7.1.12
v7.1.13
v7.1.5
v7.1.6
v7.1.7
v7.1.8
v7.1.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99847.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.40
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
7.1.5
Fixed
7.2
Type
ECOSYSTEM
Events
Introduced
7.2.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99847.json"