{"id":"CVE-2025-23131","state":"PUBLISHED","title":"dlm: prevent NPD when writing a positive value to event_done","description":"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.","publishedAt":"2025-04-16T14:13:13.056Z","updatedAt":"2026-10-15T01:05:41.801Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"a1c41aebb184d9228a440dcb6761224e65b0e49a","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"ee28d99d789b077565cbe0377374d1e826c64d93","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"c7837e2c96559663c33f43da403d9cf3cf77cfa7","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"7109d69bec6edce546dc870e66bd2b668a3d5549","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"10b7a59814765d18d43555c9cef4eb3048b7e8a3","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"8e2bad543eca5c25cd02cbc63d72557934d45f13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lockspace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.10.260","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.211","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.177","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.144","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.95","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lockspace.c"]}],"references":["https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a","https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93","https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7","https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549","https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3","https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13","https://cert-portal.siemens.com/productcert/html/ssa-784472.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/23xxx/CVE-2025-23131.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-23131","state":"PUBLISHED","datePublished":"2025-04-16T14:13:13.056Z","dateUpdated":"2026-10-15T01:05:41.801Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-11T14:28:41.511Z"},"containers":{"cna":{"title":"dlm: prevent NPD when writing a positive value to event_done","descriptions":[{"lang":"en","value":"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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"a1c41aebb184d9228a440dcb6761224e65b0e49a","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"ee28d99d789b077565cbe0377374d1e826c64d93","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"c7837e2c96559663c33f43da403d9cf3cf77cfa7","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"7109d69bec6edce546dc870e66bd2b668a3d5549","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"10b7a59814765d18d43555c9cef4eb3048b7e8a3","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","status":"affected","lessThan":"8e2bad543eca5c25cd02cbc63d72557934d45f13","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lockspace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.31","versionType":"semver"},{"version":"5.10.260","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.211","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.177","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.144","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.95","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lockspace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a"},{"url":"https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93"},{"url":"https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7"},{"url":"https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549"},{"url":"https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3"},{"url":"https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c"},{"url":"https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-07-04T11:50:23.610Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.10.260"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.15.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.1.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.6.144"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.12.95"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.14.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:05:41.801Z"},"x_adpType":"supplier"}]}}}