{"id":"CVE-2026-99424","aliases":[],"title":"ovl: set OVL_WHITEOUTS before publishing the upper dir","originalDescription":"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()]","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00195,"percentile":0.09676},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <0c0c2086680ea9eb4945fa610df5e252213b9d24","fixed":"0c0c2086680ea9eb4945fa610df5e252213b9d24"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <43ad4a3090e1c2a0c34e9802882b42c5c078d556","fixed":"43ad4a3090e1c2a0c34e9802882b42c5c078d556"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <4b079c17a1088b50a117f9a40708e30a3874dba9","fixed":"4b079c17a1088b50a117f9a40708e30a3874dba9"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <6fff0fe13fb982cc19a1f8825ce5a49ed7dd23a3","fixed":"6fff0fe13fb982cc19a1f8825ce5a49ed7dd23a3"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <7805739ce4577f2c53f5a30be2d48e83e91c63bc","fixed":"7805739ce4577f2c53f5a30be2d48e83e91c63bc"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <c585b90d28036e5adf38790efc3de0613d41237d","fixed":"c585b90d28036e5adf38790efc3de0613d41237d"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <cbec8610ec5aaf35df50094ff639febc23f20773","fixed":"cbec8610ec5aaf35df50094ff639febc23f20773"},{"ecosystem":"vendor","name":"Linux","range":">=b79e05aaa166755fafbf02db275175edb5175df8, <ea5327a9228bfd1609e54f1fca50786e8f963da5","fixed":"ea5327a9228bfd1609e54f1fca50786e8f963da5"}],"references":[{"url":"https://git.kernel.org/stable/c/43ad4a3090e1c2a0c34e9802882b42c5c078d556","type":"other"},{"url":"https://git.kernel.org/stable/c/7805739ce4577f2c53f5a30be2d48e83e91c63bc","type":"other"},{"url":"https://git.kernel.org/stable/c/ea5327a9228bfd1609e54f1fca50786e8f963da5","type":"other"},{"url":"https://git.kernel.org/stable/c/cbec8610ec5aaf35df50094ff639febc23f20773","type":"other"},{"url":"https://git.kernel.org/stable/c/4b079c17a1088b50a117f9a40708e30a3874dba9","type":"other"},{"url":"https://git.kernel.org/stable/c/c585b90d28036e5adf38790efc3de0613d41237d","type":"other"},{"url":"https://git.kernel.org/stable/c/6fff0fe13fb982cc19a1f8825ce5a49ed7dd23a3","type":"other"},{"url":"https://git.kernel.org/stable/c/0c0c2086680ea9eb4945fa610df5e252213b9d24","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.146Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99424","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.019Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:53.502Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99424","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.806Z"}],"firstSeenAt":"2026-11-19T15:00:33.806Z","publishedAt":"2026-11-19T14:40:27.661Z","modifiedAt":"2026-11-23T08:17:45.923Z"}