CVE-2026-99847
publishedapparmor: don't revalidate inherited files under files->file_lock
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd8ea44f6090c087fe255d9512fb808574b4d88e8 to < a20f98ffe158ea5eeb9932a3badbce267cd04917 · b1aea2c1960771a276d7e68c7424168eccd0c3da to < 43aba2eeaa34e045bdd73abfe66c8bd3fed97852 · b1aea2c1960771a276d7e68c7424168eccd0c3da to < a913281f600157aa036b7c02afbb18a0ac115187 · d680472db98823d90fc91362910901e468269318 · 6.18.40 to < 6.18.63 · 7.1.5 to < 7.2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d8ea44f6090c087fe255d9512fb808574b4d88e8 to < a20f98ffe158ea5eeb9932a3badbce267cd04917 (affected · git)b1aea2c1960771a276d7e68c7424168eccd0c3da to < 43aba2eeaa34e045bdd73abfe66c8bd3fed97852 (affected · git)b1aea2c1960771a276d7e68c7424168eccd0c3da to < a913281f600157aa036b7c02afbb18a0ac115187 (affected · git)d680472db98823d90fc91362910901e468269318 (affected · git)6.18.40 to < 6.18.63 (affected · semver)7.1.5 to < 7.2 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 7.2 (affected)0 to < 7.2 (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
apparmor: don't revalidate inherited files under files->file_lock
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 41ddcd4287e0a1a089f397ddee2ab7586029e1060328b8d7414660d42c95847c
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record