hfs: fix slab-out-of-bounds in hfs_bnode_read()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < efc095b35b23297e419c2ab4fc1ed1a8f0781a29| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hfs: fix slab-out-of-bounds in hfs_bnode_read()
This patch introduces is_bnode_offset_valid() method that checks the requested offset value. Also, it introduces check_and_correct_requested_length() method that checks and correct the requested length (if it is necessary). These methods are used in hfs_bnode_read(), hfs_bnode_write(), hfs_bnode_clear(), hfs_bnode_copy(), and hfs_bnode_move() with the goal to prevent the access out of allocated memory and triggering the crash.
From the CVE record · Linux
The Linux kernel's HFS code does not adequately validate offsets and lengths in b-node operations, allowing access outside allocated memory and a crash. The input does not specify whether exploitation requires local or network access, authentication, or user interaction.
Anyone running the Linux kernel should check whether their version is affected; affected versions are not specified.