{"id":"CVE-2026-99847","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:20:18.030","lastModified":"2026-11-30T14:20:18.030","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: don't revalidate inherited files under files->file_lock\n\naa_inherit_files() revalidates inherited files on exec using\niterate_fd(), which calls the callback with files->file_lock held,\nso the revalidation is done with IN_ATOMIC. However the unix socket\nmediation path can sleep: aa_unix_file_perm() drops a ref on the\npeer's path with path_put(), and unix_fs_perm() -> aa_path_perm()\nallocates a buffer with aa_get_buffer(false), resulting in\n\n  BUG: sleeping function called from invalid context at fs/dcache.c:1039\n  ...\n   dput.part.0+0x24/0x180\n   path_put+0x2c/0x60\n   aa_unix_file_perm+0x42a/0x17b0\n   aa_file_perm+0xcd3/0x1060\n   match_file+0x10b/0x190\n   iterate_fd+0xe6/0x280\n   aa_inherit_files+0x250/0x4f0\n\nOnly grab a ref on each file under iterate_fd(), and revalidate it\nafter the lock is dropped, so revalidation is done with no locks held\nand does not need to be atomic. Denied fds are still replaced with\n/dev/null, or closed if it can not be opened."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["security/apparmor/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"d8ea44f6090c087fe255d9512fb808574b4d88e8","lessThan":"a20f98ffe158ea5eeb9932a3badbce267cd04917","versionType":"git","status":"affected"},{"version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","lessThan":"43aba2eeaa34e045bdd73abfe66c8bd3fed97852","versionType":"git","status":"affected"},{"version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","lessThan":"a913281f600157aa036b7c02afbb18a0ac115187","versionType":"git","status":"affected"},{"version":"d680472db98823d90fc91362910901e468269318","versionType":"git","status":"affected"},{"version":"6.18.40","lessThan":"6.18.63","versionType":"semver","status":"affected"},{"version":"7.1.5","lessThan":"7.2","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["security/apparmor/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}