AZL-117196: CVE-2026-139519 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
dlm: validate node weights before building member array
DLM node weights are parsed as signed integers and copied into the member list. makememberarray() uses their sum as the allocation count, but only positive weights contribute entries to the array. A negative weight can therefore reduce the allocation without reducing the number of writes.
The issue was found through static analysis of the configfs input and member array construction. With two recovery members weighted -31 and 32, the sum is 1, so recovery allocates one int and then writes the positive member's node ID 32 times. A reproducer using dlmcontrold and dlmtool triggered the same report on a KASAN kernel:
BUG: KASAN: slab-out-of-bounds in dlmrecovermembers [dlm] Write of size 4 by task dlmrecoverd
Call Trace: dlmrecovermembers dlmrecoverd kthread retfromfork
Reject negative weights at the configfs input boundary. Also detect overflow when adding non-negative weights to the signed allocation count, and propagate array construction errors to the recovery path.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds write?
An attacker needs the ability to supply DLM node weights through the configfs input. Exploitation requires a set of recovery-member weights whose signed sum causes too small an allocation while positive weights still cause repeated writes, such as weights of -31 and 32.
What is the practical impact of a successful trigger?
The vulnerable recovery path can write past the allocated member array in the DLM kernel module. The reported manifestation is a KASAN-detected slab out-of-bounds write in dlm_recover_members, executed by the dlm_recoverd kernel thread.
What should be done if an update cannot be applied immediately?
Prevent untrusted or invalid DLM node-weight configuration from being submitted through configfs, particularly negative weights. Review recovery-member configurations for negative values and combinations that could make the total weight smaller than the number of positive-weight entries required.