AZL-115657: CVE-2026-99757 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
btrfs: sysfs: restore NOFS context on early return in btrfssysfsaddblockgrouptype()
btrfssysfsaddblockgrouptype() sets up a NOFS context with memallocnofssave() because kobjectadd() performs GFPKERNEL 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 memallocnofsrestore() 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 PFMEMALLOCNOFS 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In btrfs_sysfs_add_block_group_type(), restore the NOFS context before the early return when another thread has already created the kobject for the same RAID index.