spufs: fix a leak on spufs_new_file() failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3f51dd91c80746a5cf76f8c4a77bfc88aa82bb9e · < 35f789ccebd69f6f9a1e0a9b85435003b2450065| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spufs: fix a leak on spufs_new_file() failure
It's called from spufs_fill_dir(), and caller of that will do spufs_rmdir() in case of failure. That does remove everything we'd managed to create, but... the problem dentry is still negative. IOW, it needs to be explicitly dropped.
From the CVE record · Linux
The Linux kernel's spufs code can leak a dentry when spufs_new_file() fails: cleanup removes created entries but leaves the failed entry behind. The input does not specify how an attacker could trigger this failure or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their build includes the affected spufs code; affected versions are not specified.