cachefiles: Fix error return when vfs_mkdir() fails
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 |
|
|
6.18.577.0.117.1In the Linux kernel, the following vulnerability has been resolved:
cachefiles: Fix error return when vfs_mkdir() fails
When vfs_mkdir() fails, the error code is not extracted from the returned error pointer. This causes mkdir_error to be reached with ret=0, which leads to returning ERR_PTR(0) (NULL) instead of a proper error pointer.
Fix this by extracting the error code from the error pointer when vfs_mkdir() fails.
From the CVE record · Linux
The Linux kernel’s cachefiles code can return NULL instead of an error pointer when vfs_mkdir() fails. The input does not specify an attacker action, access requirements, or user interaction needed to trigger the flaw.
Engineers running Linux kernels with cachefiles should check whether their kernel is affected; affected versions are not specified.