{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99847","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.437Z","datePublished":"2026-11-30T13:17:36.624Z","dateUpdated":"2026-11-30T13:17:36.624Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:17:36.624Z"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/file.c"],"versions":[{"version":"d8ea44f6090c087fe255d9512fb808574b4d88e8","lessThan":"a20f98ffe158ea5eeb9932a3badbce267cd04917","status":"affected","versionType":"git"},{"version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","lessThan":"43aba2eeaa34e045bdd73abfe66c8bd3fed97852","status":"affected","versionType":"git"},{"version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","lessThan":"a913281f600157aa036b7c02afbb18a0ac115187","status":"affected","versionType":"git"},{"version":"d680472db98823d90fc91362910901e468269318","status":"affected","versionType":"git"},{"version":"6.18.40","lessThan":"6.18.63","status":"affected","versionType":"semver"},{"version":"7.1.5","lessThan":"7.2","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/file.c"],"versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.40","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1.5"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917"},{"url":"https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852"},{"url":"https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187"}],"title":"apparmor: don't revalidate inherited files under files->file_lock","x_generator":{"engine":"bippy-1.2.0"}}}}