CVE-2026-143051: ovl: fix leak of lowerdata redirect on ovl_get_inode() failure
In the Linux kernel, the following vulnerability has been resolved:
ovl: fix leak of lowerdata redirect on ovlgetinode() failure
ovllookuplayers() moves d->redirect into oip.lowerdataredirect and clears d->redirect before calling ovlgetinode(). When ovlgetinode() fails, it does not free oip.lowerdataredirect, and ovllookup() frees the already cleared d->redirect, so the lowerdata redirect string is leaked.
Clear d->redirect only after ovlgetinode() has succeeded, like d->upperredirect, so that ovllookup() frees it on failure.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Clear d->redirect only after ovl_get_inode() has succeeded.
Event History
Frequently Asked Questions
What conditions are required for the memory leak to occur?
The failure path requires OverlayFS layer lookup to move a lowerdata redirect string and then ovl_get_inode() to fail. In that path, the redirect pointer has already been cleared from the lookup data, so the normal cleanup does not free the string.
What is the impact if the vulnerable path is triggered?
A lowerdata redirect string is leaked in kernel memory. The provided data does not specify an attacker-controlled trigger, privilege requirement, or impact beyond this memory leak.
How can I determine whether a system is affected?
Check whether the running Linux kernel includes either referenced stable commit, 6caff173ae6a704dfc56f92d60ffdf545d53b293 or f1b7e5534854043077bb72afc8d87ad1e0b283e0. The fix keeps d->redirect intact until ovl_get_inode() succeeds, allowing the existing failure cleanup to free it.