{"api_version":"1","generated_at":"2026-07-04T18:19:03+00:00","cve":"CVE-2025-23131","urls":{"html":"https://cve.report/CVE-2025-23131","api":"https://cve.report/api/cve/CVE-2025-23131.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-23131","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-23131"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-04-16 15:16:07","updated_at":"2026-07-04 12:16:52"},"problem_types":["CWE-476"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a","name":"https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3","name":"https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93","name":"https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549","name":"https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7","name":"https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13","name":"https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","name":"https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-23131","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23131","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c a1c41aebb184d9228a440dcb6761224e65b0e49a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c ee28d99d789b077565cbe0377374d1e826c64d93 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c c7837e2c96559663c33f43da403d9cf3cf77cfa7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c 7109d69bec6edce546dc870e66bd2b668a3d5549 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c 10b7a59814765d18d43555c9cef4eb3048b7e8a3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8511a2728ab82cab398e39d019f5cf1246021c1c 8e2bad543eca5c25cd02cbc63d72557934d45f13 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.31","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.31 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.260 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.211 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.177 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.144 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.95 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14.2 6.14.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.15 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2025","cve_id":"23131","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/dlm/lockspace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a1c41aebb184d9228a440dcb6761224e65b0e49a","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"ee28d99d789b077565cbe0377374d1e826c64d93","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"c7837e2c96559663c33f43da403d9cf3cf77cfa7","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"7109d69bec6edce546dc870e66bd2b668a3d5549","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"10b7a59814765d18d43555c9cef4eb3048b7e8a3","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"},{"lessThan":"8e2bad543eca5c25cd02cbc63d72557934d45f13","status":"affected","version":"8511a2728ab82cab398e39d019f5cf1246021c1c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/dlm/lockspace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.31"},{"lessThan":"2.6.31","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.260","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.211","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.177","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.144","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.95","versionType":"semver"},{"lessThanOrEqual":"6.14.*","status":"unaffected","version":"6.14.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.15","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.260","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.211","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.177","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.144","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.95","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.14.2","versionStartIncluding":"2.6.31","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.15","versionStartIncluding":"2.6.31","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-07-04T11:50:23.610Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"dlm: prevent NPD when writing a positive value to event_done","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-23131","datePublished":"2025-04-16T14:13:13.056Z","dateReserved":"2025-01-11T14:28:41.511Z","dateUpdated":"2026-07-04T11:50:23.610Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-04-16 15:16:07","lastModifiedDate":"2026-07-04 12:16:52","problem_types":["CWE-476"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.14.2","matchCriteriaId":"F58D37CF-20C2-423F-AA5A-598AE9F724C5"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"23131","Ordinal":"1","Title":"dlm: prevent NPD when writing a positive value to event_done","CVE":"CVE-2025-23131","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"23131","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"dlm: prevent NPD when writing a positive value to event_done"}]}}}