Skip to content
Not rated

CVE-2025-23131 dlm: prevent NPD when writing a positive value to event_done

Description

In the Linux kernel, the following vulnerability has been resolved: dlm: prevent NPD when writing a positive value to event_done do_uevent returns the value written to event_done. In case it is a positive value, new_lockspace would undo all the work, and lockspace would not be set. __dlm_new_lockspace, however, would treat that positive value as a success due to commit 8511a2728ab8 ("dlm: fix use count with multiple joins"). Down the line, device_create_lockspace would pass that NULL lockspace to dlm_find_lockspace_local, leading to a NULL pointer dereference. Treating such positive values as successes prevents the problem. Given this has been broken for so long, this is unlikely to break userspace expectations.

Affected products and versions

Product Affected versions Fixed in
Linux 6.15 earliest → < 6.15 6.15
Linux 6.14 earliest → < 6.14.2 6.14.2
Linux 6.12 earliest → < 6.12.95 6.12.95
Linux 6.6 earliest → < 6.6.144 6.6.144
Linux 6.1 earliest → < 6.1.177 6.1.177
Linux 5.15 earliest → < 5.15.211 5.15.211
Linux 5.10 earliest → < 5.10.260 5.10.260
Linux 2.6.31 No fix stated
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem Versions not published
The 18286 CVEs of Linux →
Track this CVE