{"id":"CVE-2023-54119","state":"PUBLISHED","title":"inotify: Avoid reporting event with invalid wd","description":"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).","publishedAt":"2025-12-24T13:06:39.692Z","updatedAt":"2026-05-11T19:55:50.727Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"8fb33166aed888769ea63d6af49515893f8a1f14","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"2d65c97777e5b4a845637800d5d7b648f5772106","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"17ad86d8c12220de97e80d88b5b4c934a40e1812","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"145f54ea336b06cf4f92eeee996f2ffca939ea43","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"fb3294998489d39835006240e9c6e6b2ac62022e","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"a48bacee05860c6089c3482bcdc80720b0ee5732","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"c915d8f5918bea7c3962b09b8884ca128bfd9b0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/inotify/inotify_fsnotify.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.4.243","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.180","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.112","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.29","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.16","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.3","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/inotify/inotify_fsnotify.c"]}],"references":["https://git.kernel.org/stable/c/8fb33166aed888769ea63d6af49515893f8a1f14","https://git.kernel.org/stable/c/2d65c97777e5b4a845637800d5d7b648f5772106","https://git.kernel.org/stable/c/17ad86d8c12220de97e80d88b5b4c934a40e1812","https://git.kernel.org/stable/c/145f54ea336b06cf4f92eeee996f2ffca939ea43","https://git.kernel.org/stable/c/fb3294998489d39835006240e9c6e6b2ac62022e","https://git.kernel.org/stable/c/a48bacee05860c6089c3482bcdc80720b0ee5732","https://git.kernel.org/stable/c/c915d8f5918bea7c3962b09b8884ca128bfd9b0c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54119.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54119","state":"PUBLISHED","datePublished":"2025-12-24T13:06:39.692Z","dateUpdated":"2026-05-11T19:55:50.727Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T13:02:52.520Z"},"containers":{"cna":{"title":"inotify: Avoid reporting event with invalid wd","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"8fb33166aed888769ea63d6af49515893f8a1f14","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"2d65c97777e5b4a845637800d5d7b648f5772106","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"17ad86d8c12220de97e80d88b5b4c934a40e1812","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"145f54ea336b06cf4f92eeee996f2ffca939ea43","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"fb3294998489d39835006240e9c6e6b2ac62022e","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"a48bacee05860c6089c3482bcdc80720b0ee5732","versionType":"git"},{"version":"7e790dd5fc937bc8d2400c30a05e32a9e9eef276","status":"affected","lessThan":"c915d8f5918bea7c3962b09b8884ca128bfd9b0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/inotify/inotify_fsnotify.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.4.243","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.180","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.112","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.29","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.16","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3.3","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/inotify/inotify_fsnotify.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8fb33166aed888769ea63d6af49515893f8a1f14"},{"url":"https://git.kernel.org/stable/c/2d65c97777e5b4a845637800d5d7b648f5772106"},{"url":"https://git.kernel.org/stable/c/17ad86d8c12220de97e80d88b5b4c934a40e1812"},{"url":"https://git.kernel.org/stable/c/145f54ea336b06cf4f92eeee996f2ffca939ea43"},{"url":"https://git.kernel.org/stable/c/fb3294998489d39835006240e9c6e6b2ac62022e"},{"url":"https://git.kernel.org/stable/c/a48bacee05860c6089c3482bcdc80720b0ee5732"},{"url":"https://git.kernel.org/stable/c/c915d8f5918bea7c3962b09b8884ca128bfd9b0c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:55:50.727Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.4.243"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.10.180"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"5.15.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.1.29"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.2.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.3.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.31","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}