{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99425","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.414Z","datePublished":"2026-11-19T14:40:28.722Z","dateUpdated":"2026-11-22T11:08:11.461Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:11.461Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\novl: hold a reference on the parent in readdir\n\nListing a directory on an overlay uses a freed dentry and crashes the\nkernel when a lookup moves the directory at the same time.\n\nCode that can sleep may only use d_parent without a reference while\nsomething stops a move of the dentry. ovl_iterate_real(),\novl_need_adjust_d_ino() and ovl_cache_update() use the d_parent of the\nlisted directory and hold only the lock of that directory. When a\nlookup finds the directory under another parent after a change to a\nlayer, d_splice_alias() moves it without that lock and drops its\nreference on the old parent.\n\nWith a delay in ovl_iterate_real(), getdents64 on an overlay directory\nraced a rename in the lower layer and a lookup that moved its dentry,\nand after an rmdir of the old parent KASAN reported a use-after-free in\nsecurity_inode_getattr().\n\nFix this by using dget_parent() in the three functions.\n\n[amir: fix comments in ovl_need_adjust_d_ino()]"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - getdents64() reaches ovl_iterate_real() via iterate_dir() and ovl_dir_operations.iterate_shared. That function uses the listed directory's d_parent with no reference; d_splice_alias() in ovl_lookup() drops it after a rename of the lower directory, and a local rmdir frees the parent.\nAC:L - The attacker creates a merge parent and a lower-only child, then runs getdents64() on the child concurrently with a rename of that directory in the lower layer, a lookup that calls ovl_lookup() into d_splice_alias(), and rmdir of the old parent. vfs_getattr() keeps the raw parent pointer across ovl_getattr(), which can sleep.\nPR:L - The race needs read access to the overlay directory plus write access to the lower directory and to the old parent. overlayfs sets FS_USERNS_MOUNT, and clone_private_mount() accepts CAP_SYS_ADMIN in the mounter's user namespace, so an unprivileged user can mount this over a tmpfs they created.\nUI:N - The attacker mounts the overlay, calls getdents64() on the child, renames the lower directory, looks up the new path, and rmdirs the old parent. No other user has to mount media or open a file.\nS:U - The freed object is an overlay dentry in the caller's kernel dcache, consumed by security_inode_getattr() and ovl_getattr() in that same kernel. A successful exploit is kernel privilege escalation without a guest-to-host or IOMMU boundary.\nC:H - security_inode_getattr() reads d_inode from the freed parent, and ovl_getattr() follows that inode and the dentry's d_fsdata. After dentry_free() returns the object to the slab, reclaiming it supplies those pointers and the getattr walk reads kernel memory.\nI:H - ovl_cache_update() calls dget() on the stale d_parent, and lockref_get() writes that dentry's refcount. vfs_getattr_nosec() also calls inode->i_op->getattr through the freed dentry, so a reclaimed object is an indirect call.\nA:H - The fix commit records a KASAN use-after-free in security_inode_getattr() when ovl_iterate_real() calls vfs_getattr() on the parent after rmdir. That access faults on freed or poisoned dentry memory and crashes the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/readdir.c"],"versions":[{"version":"b5efccbe0a12a9d5c65c1a60b4270837c7fdb900","lessThan":"862804fc1d8e6d11652d01f84451a0c9396d10cd","status":"affected","versionType":"git"},{"version":"b5efccbe0a12a9d5c65c1a60b4270837c7fdb900","lessThan":"0759376aa01168edeec9319f9cc8e5e9b9388c5c","status":"affected","versionType":"git"},{"version":"b5efccbe0a12a9d5c65c1a60b4270837c7fdb900","lessThan":"73aae2a6b5b34b4ee5dbc7b008fc658c2a16fcea","status":"affected","versionType":"git"},{"version":"b5efccbe0a12a9d5c65c1a60b4270837c7fdb900","lessThan":"16d319e12328acafeafd3eecdf09c46d7fb43452","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/overlayfs/readdir.c"],"versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/862804fc1d8e6d11652d01f84451a0c9396d10cd"},{"url":"https://git.kernel.org/stable/c/0759376aa01168edeec9319f9cc8e5e9b9388c5c"},{"url":"https://git.kernel.org/stable/c/73aae2a6b5b34b4ee5dbc7b008fc658c2a16fcea"},{"url":"https://git.kernel.org/stable/c/16d319e12328acafeafd3eecdf09c46d7fb43452"}],"title":"ovl: hold a reference on the parent in readdir","x_generator":{"engine":"bippy-1.2.0"}}}}