CVE-2026-99757

btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

No CVSS score yet EPSS 0.18%

Published 20 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99757

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99757 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

btrfs_sysfs_add_block_group_type() sets up a NOFS context with memalloc_nofs_save() because kobject_add() performs GFP_KERNEL allocations deep in its call chain, and the function may be called while holding a transaction handle or a lock required for a transaction commit, where reclaim could deadlock.

Every other return path of this function calls memalloc_nofs_restore() except the early return taken when another thread has already created the kobject for the same raid index (this can happen when restriping). Taking that path leaves PF_MEMALLOC_NOFS set on the calling task, so all subsequent memory allocations performed by that task remain restricted to the NOFS scope, which may lead to unexpected allocation failures or deadlocks later on.

Restore the NOFS context before returning from that path.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.32% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before 0161848843c2b9c4332db8d3fda5c65e0b426884
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before 27e3994f00f4143b642af67edf5c7fa2a3db2915
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before ff30c0696ee227ada87b5aaa7c3b7758eafa9cad
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before f56c6e48673e3ffd7bf0485939541c028cb6c084
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before fa34d172c9e3ee25162f515c77e04247ea780083
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before b72664c8d0e6aada7f48277968266867fd127ea7
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before c7011ad8d6941e1a53882c486145935dc5664c6f
affected from 49ea112da0e6e323bb923315ec54ee920759bf19, before 4172be965c2ce887ebfb1117c634a68555be8c11
Other versions: unaffected
Linux
affected 5.10
unaffected before 5.10
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.118 up to and including 6.12.*
unaffected from 6.18.64 up to and including 6.18.*
unaffected from 7.3.5 up to and including 7.3.*
unaffected 7.4-rc2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99757 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99757

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99757
trivy image --scanners vuln IMAGE | grep CVE-2026-99757

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99757 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.