jfs: fix array-index-out-of-bounds read in add_missing_indices
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 2ec34dc7094b14149ce091c77aff43a45d255518| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
jfs: fix array-index-out-of-bounds read in add_missing_indices
stbl is s8 but it must contain offsets into slot which can go from 0 to 127.
Added a bound check for that error and return -EIO if the check fails. Also make jfs_readdir return with error if add_missing_indices returns with an error.
From the CVE record · Linux
The Linux kernel’s JFS code can read outside an array in add_missing_indices because a signed 8-bit value is used for offsets that can reach 127. The input does not specify how an attacker could trigger the read, or whether access or user interaction is required.
Engineers running Linux kernels with JFS should check their installations; affected versions are not specified.