CVE-2026-99847: apparmor: don't revalidate inherited files under files->file_lock

Published Nov 30, 2026
·
Updated

apparmor: don't revalidate inherited files under files->filelock

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.18.40<6.18.63
6.18.63
linux/kernel>=7.1.5<7.2
7.2
linux/kernel>=7.2.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.2
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description
Data Sourced
via OSV·01:17 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the invalid-context sleep?

Systems using AppArmor file revalidation during exec are affected when inherited file descriptors include paths that enter Unix socket mediation. The problematic path occurs while inherited descriptors are iterated with files->file_lock held.

2

How can I recognize that this issue has occurred?

The kernel can report "BUG: sleeping function called from invalid context" with a stack involving path_put, aa_unix_file_perm, aa_file_perm, match_file, iterate_fd, and aa_inherit_files.

3

What does the fix change for denied inherited file descriptors?

The fix takes a reference to each file while iterating descriptors, then revalidates it after files->file_lock is released. Descriptors that are denied continue to be replaced with /dev/null, or closed when /dev/null cannot be opened.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203