{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-39840","published":"2025-09-19T16:15:42.703000Z","last_modified":"2026-10-19T21:10:00.160000Z","status":"Modified","cvss":{"version":"3.1","score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.14","version_end_excluding":"6.16.6"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":43,"links":{"html_es":"/es/cve/CVE-2025-39840/","html_en":"/en/cve/CVE-2025-39840/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-39840","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-39840"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\naudit: fix out-of-bounds read in audit_compare_dname_path()\n\nWhen a watch on dir=/ is combined with an fsnotify event for a\nsingle-character name directly under / (e.g., creating /a), an\nout-of-bounds read can occur in audit_compare_dname_path().\n\nThe helper parent_len() returns 1 for \"/\". In audit_compare_dname_path(),\nwhen parentlen equals the full path length (1), the code sets p = path + 1\nand pathlen = 1 - 1 = 0. The subsequent loop then dereferences\np[pathlen - 1] (i.e., p[-1]), causing an out-of-bounds read.\n\nFix this by adding a pathlen > 0 check to the while loop condition\nto prevent the out-of-bounds access.\n\n[PM: subject tweak, sign-off email fixes]","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/4540f1d23e7f387880ce46d11b5cd3f27248bf8d","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/9735a9dcc307427e7d6336c54171682f1bac9789","tags":["Patch"]}]},"bulletins":[{"source":"redhat","id":"RHSA-2026:0453","url":"https://access.redhat.com/errata/RHSA-2026:0453","published":"2026-01-14T10:39:16+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}},{"source":"redhat","id":"RHSA-2026:0445","url":"https://access.redhat.com/errata/RHSA-2026:0445","published":"2026-01-14T10:39:14+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}}]}