fs/mount_setattr: always cleanup mount_kattr
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fs/mount_setattr: always cleanup mount_kattr
Make sure that finish_mount_kattr() is called after mount_kattr was succesfully built in both the success and failure case to prevent leaking any references we took when we built it. We returned early if path lookup failed thereby risking to leak an additional reference we took when building mount_kattr when an idmapped mount was requested.
From the CVE record · Linux
The Linux kernel can leak a reference when path lookup fails after mount_kattr is built for an idmapped mount request. An attacker could potentially trigger the leak, but the input does not specify access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their installations; affected versions are not specified.