{"id":"CVE-2026-99424","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-19T15:17:55.430","lastModified":"2026-11-23T08:17:45.923","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: set OVL_WHITEOUTS before publishing the upper dir\n\nListing a directory while it is copied up causes a use-after-free of\nthe readdir cache.\n\nA merge directory must never be iterated as a real upper directory:\nthat mode frees the cache in OVL_I(inode)->cache without looking at\nits refcount, while files opened in merged mode still use it.\novl_copy_up_workdir() publishes the upper dentry before it sets\nOVL_WHITEOUTS, and ovl_dir_open() samples both without a lock, so an\nopen between the two stores finds the upper directory and takes it\nfor a real one.\n\nWith a delay between the two stores, an unprivileged process that\nlisted a directory during its copy-up saw only \".\" and \"..\", and its\nnext getdents freed the readdir cache of another descriptor.\n\nFix this by setting OVL_WHITEOUTS before ovl_inode_update(), so that\novl_dir_reset() agrees with ovl_dir_open(), and by testing\nOVL_TYPE_MERGE() of the path type in ovl_dir_open(), so that an open\nthat observes the upper dentry never iterates a merge dir as a real\ndir, regardless of the order in which it observes the flag.\n\n[amir: test OVL_TYPE_MERGE() instead of smp_rmb() in ovl_dir_open()]"}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/overlayfs/copy_up.c","fs/overlayfs/readdir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"4b079c17a1088b50a117f9a40708e30a3874dba9","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"c585b90d28036e5adf38790efc3de0613d41237d","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"6fff0fe13fb982cc19a1f8825ce5a49ed7dd23a3","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"0c0c2086680ea9eb4945fa610df5e252213b9d24","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"43ad4a3090e1c2a0c34e9802882b42c5c078d556","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"7805739ce4577f2c53f5a30be2d48e83e91c63bc","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"ea5327a9228bfd1609e54f1fca50786e8f963da5","versionType":"git","status":"affected"},{"version":"b79e05aaa166755fafbf02db275175edb5175df8","lessThan":"cbec8610ec5aaf35df50094ff639febc23f20773","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/overlayfs/copy_up.c","fs/overlayfs/readdir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"4.15","status":"affected"},{"version":"0","lessThan":"4.15","versionType":"semver","status":"unaffected"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/0c0c2086680ea9eb4945fa610df5e252213b9d24","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/43ad4a3090e1c2a0c34e9802882b42c5c078d556","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4b079c17a1088b50a117f9a40708e30a3874dba9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6fff0fe13fb982cc19a1f8825ce5a49ed7dd23a3","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7805739ce4577f2c53f5a30be2d48e83e91c63bc","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c585b90d28036e5adf38790efc3de0613d41237d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cbec8610ec5aaf35df50094ff639febc23f20773","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ea5327a9228bfd1609e54f1fca50786e8f963da5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}