CVE-2024-47705 In the Linux kernel, the following vulnerability has been resolved: block: fix potential invalid pointer dereference…
Description
In the Linux kernel, the following vulnerability has been resolved: block: fix potential invalid pointer dereference in blk_add_partition The blk_add_partition() function initially used a single if-condition (IS_ERR(part)) to check for errors when adding a partition. This was modified to handle the specific case of -ENXIO separately, allowing the function to proceed without logging the error in this case. However, this change unintentionally left a path where md_autodetect_dev() could be called without confirming that part is a valid pointer. This commit separates the error handling logic by splitting the initial if-condition, improving code readability and handling specific error scenarios explicitly. The function now distinguishes the general error case from -ENXIO without altering the existing behavior of md_autodetect_dev() calls.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Linux 6.12 | earliest → < 6.12 | 6.12 |
| Linux 6.11 | earliest → < 6.11.2 | 6.11.2 |
| Linux 6.10 | earliest → < 6.10.13 | 6.10.13 |
| Linux 6.6 | earliest → < 6.6.54 | 6.6.54 |
| Linux 6.1 | earliest → < 6.1.113 | 6.1.113 |
| Linux 5.15 | earliest → < 5.15.168 | 5.15.168 |
| Linux 5.10 | earliest → < 5.10.227 | 5.10.227 |
| Linux | 5.5 | No fix stated |
| RUGGEDCOM RST2428P 3.2 | earliest → < 3.2 | 3.2 |
Show the 3 other branches Hide the 3 other branches
| Product | Affected versions | Fixed in |
|---|---|---|
| SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family 3.2 | earliest → < 3.2 | 3.2 |
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family 3.2 | earliest → < 3.2 | 3.2 |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 1.1 | earliest → < 1.1.1 | 1.1.1 |
References
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
- git.kernel.org git.kernel.org
Timeline
- Published
- Last modified