{"id":"CVE-2023-54119","aliases":["CVE-2023-54119"],"related":[],"kind":"vulnerability","state":"published","title":"inotify: Avoid reporting event with invalid wd","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ninotify: Avoid reporting event with invalid wd\n\nWhen inotify_freeing_mark() races with inotify_handle_inode_event() it\ncan happen that inotify_handle_inode_event() sees that i_mark->wd got\nalready reset to -1 and reports this value to userspace which can\nconfuse the inotify listener. Avoid the problem by validating that wd is\nsensible (and pretend the mark got removed before the event got\ngenerated otherwise).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ninotify: Avoid reporting event with invalid wd\n\nWhen inotify_freeing_mark() races with inotify_handle_inode_event() it\ncan happen that inotify_handle_inode_event() sees that i_mark->wd got\nalready reset to -1 and reports this value to userspace which can\nconfuse the inotify listener. Avoid the problem by validating that wd is\nsensible (and pretend the mark got removed before the event got\ngenerated otherwise).","source":"cvelist"}],"published":"2025-12-24T13:06:39.692Z","modified":"2026-06-17T06:46:50.163Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"8fb33166aed888769ea63d6af49515893f8a1f14","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"2d65c97777e5b4a845637800d5d7b648f5772106","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"17ad86d8c12220de97e80d88b5b4c934a40e1812","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"145f54ea336b06cf4f92eeee996f2ffca939ea43","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"fb3294998489d39835006240e9c6e6b2ac62022e","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"a48bacee05860c6089c3482bcdc80720b0ee5732","status":"affected"},{"type":"git","introduced":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","fixed":"c915d8f5918bea7c3962b09b8884ca128bfd9b0c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.31","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.31","status":"unaffected"},{"type":"semver","introduced":"5.4.243","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.180","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.112","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.29","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.16","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.3.3","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8fb33166aed888769ea63d6af49515893f8a1f14","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d65c97777e5b4a845637800d5d7b648f5772106","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17ad86d8c12220de97e80d88b5b4c934a40e1812","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/145f54ea336b06cf4f92eeee996f2ffca939ea43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb3294998489d39835006240e9c6e6b2ac62022e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a48bacee05860c6089c3482bcdc80720b0ee5732","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c915d8f5918bea7c3962b09b8884ca128bfd9b0c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54119","url":"https://www.cve.org/CVERecord?id=CVE-2023-54119","licence":"CVE Terms of Use","modified":"2026-05-11T19:55:50.727Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54119","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54119","licence":"Public domain","modified":"2026-06-17T06:46:50.163Z"}],"updatedAt":"2026-11-25T22:58:35.183Z","epss":{"score":0.0023,"percentile":0.14741,"date":"2026-12-01T12:00:22.000Z"}}