{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-23131","id":"CVE-2025-23131","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 us","descriptionLong":"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.","published":"2025-04-16T14:13:13.056Z","updated":"2026-11-07T02:31:04.038172416Z","reserved":"2025-01-11T14:28:41.511Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"a1c41aebb184d9228a440dcb6761224e65b0e49a","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"ee28d99d789b077565cbe0377374d1e826c64d93","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"c7837e2c96559663c33f43da403d9cf3cf77cfa7","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"7109d69bec6edce546dc870e66bd2b668a3d5549","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"10b7a59814765d18d43555c9cef4eb3048b7e8a3","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","status":"affected","versionType":"git"},{"version":"8511a2728ab82cab398e39d019f5cf1246021c1c","lessThan":"8e2bad543eca5c25cd02cbc63d72557934d45f13","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.31","status":"affected"},{"version":"0","lessThan":"2.6.31","status":"unaffected","versionType":"semver"},{"version":"5.10.260","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.211","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.177","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.144","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.95","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.2","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a1c41aebb184d9228a440dcb6761224e65b0e49a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/ee28d99d789b077565cbe0377374d1e826c64d93","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c7837e2c96559663c33f43da403d9cf3cf77cfa7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7109d69bec6edce546dc870e66bd2b668a3d5549","tags":["web"]},{"url":"https://git.kernel.org/stable/c/10b7a59814765d18d43555c9cef4eb3048b7e8a3","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b73c4ad4d387fe5bc988145bd9f1bc0de76afd5c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8e2bad543eca5c25cd02cbc63d72557934d45f13","tags":["Patch","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23131.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23131","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00195,"epssPercentile":0.09346,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-23131","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23131","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-23131","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-23131","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}