{"schema_version":"1.9.0","id":"CVE-2025-23131","published":"2025-04-16T14:13:13.056Z","modified":"2026-08-12T03:51:47.616263533Z","related":["CGA-37h3-6fmp-7g67","SUSE-SU-2025:01600-1","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:01972-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"summary":"dlm: prevent NPD when writing a positive value to event_done","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndlm: prevent NPD when writing a positive value to event_done\n\ndo_uevent returns the value written to event_done. In case it is a\npositive value, new_lockspace would undo all the work, and lockspace\nwould not be set. __dlm_new_lockspace, however, would treat that\npositive value as a success due to commit 8511a2728ab8 (\"dlm: fix use\ncount with multiple joins\").\n\nDown the line, device_create_lockspace would pass that NULL lockspace to\ndlm_find_lockspace_local, leading to a NULL pointer dereference.\n\nTreating such positive values as successes prevents the problem. Given\nthis has been broken for so long, this is unlikely to break userspace\nexpectations.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8511a2728ab82cab398e39d019f5cf1246021c1c"},{"fixed":"a1c41aebb184d9228a440dcb6761224e65b0e49a"},{"fixed":"ee28d99d789b077565cbe0377374d1e826c64d93"},{"fixed":"c7837e2c96559663c33f43da403d9cf3cf77cfa7"},{"fixed":"7109d69bec6edce546dc870e66bd2b668a3d5549"},{"fixed":"10b7a59814765d18d43555c9cef4eb3048b7e8a3"},{"fixed":"b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c"},{"fixed":"8e2bad543eca5c25cd02cbc63d72557934d45f13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-23131.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"5.10.260"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.211"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.177"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.144"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.95"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-23131.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23131.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23131"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23131.json"}}