{"id":"CVE-2026-143052","summary":"ovl: do not read the flags of a put upper dentry in lookup","details":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: do not read the flags of a put upper dentry in lookup\n\novl_lookup_layers() passes ctx-\u003eupperdentry to ovl_get_inode(), which\ntakes over the reference. If an overlay inode for the upper inode is\nalready cached, as for a second hard link, ovl_get_inode() puts the\ndentry and returns the cached inode. ovl_lookup_layers() then passes\nthe put dentry to ovl_dentry_init_reval(), which reads its d_flags.\n\nWith a local upper fs the put dentry usually stays in the dcache, but\nwith a FUSE upper whose entry has timed out, dput() kills it, so this\nis a use-after-free.\n\nFix this by taking the revalidate flags from the upper dentry of the\noverlay inode, which is the one that ovl_dentry_revalidate_common()\nrevalidates.","modified":"2026-12-03T11:00:22.025800770Z","published":"2026-12-03T09:18:29.276Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143052.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7031366be218f291592a7ad38bc34a7cd1459737"},{"type":"WEB","url":"https://git.kernel.org/stable/c/baff898c8ad8b46ce1378559160eb00287ecf6cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143052.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143052"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bccece1ead368149f90e05ad104dfbfda4422f5d"},{"fixed":"baff898c8ad8b46ce1378559160eb00287ecf6cd"},{"fixed":"7031366be218f291592a7ad38bc34a7cd1459737"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143052.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143052.json"}}],"schema_version":"1.9.2"}