fs: autofs: fix memory leak in autofs_fill_super()
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: autofs: fix memory leak in autofs_fill_super()
In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM.
From the CVE record · Linux
The Linux kernel's autofs_fill_super() leaks a newly created inode if root inode creation fails. The input does not specify how an attacker could trigger this failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with autofs should check their versions; affected versions are not specified.