ext4: improve error handling from ext4_dirhash()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: improve error handling from ext4_dirhash()
The ext4_dirhash() will *almost* never fail, especially when the hash tree feature was first introduced. However, with the addition of support of encrypted, casefolded file names, that function can most certainly fail today.
So make sure the callers of ext4_dirhash() properly check for failures, and reflect the errors back up to their callers.
From the CVE record · Linux
The Linux kernel’s ext4 callers do not properly handle failures from ext4_dirhash(), which can fail with encrypted, casefolded file names. The input does not specify an attacker action, access requirements, or user interaction needed to trigger the issue.
Engineers running Linux kernels with ext4 support should check their versions; affected versions are not specified.