{"id":"CVE-2024-47705","summary":"block: fix potential invalid pointer dereference in blk_add_partition","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: fix potential invalid pointer dereference in blk_add_partition\n\nThe blk_add_partition() function initially used a single if-condition\n(IS_ERR(part)) to check for errors when adding a partition. This was\nmodified to handle the specific case of -ENXIO separately, allowing the\nfunction to proceed without logging the error in this case. However,\nthis change unintentionally left a path where md_autodetect_dev()\ncould be called without confirming that part is a valid pointer.\n\nThis commit separates the error handling logic by splitting the\ninitial if-condition, improving code readability and handling specific\nerror scenarios explicitly. The function now distinguishes the general\nerror case from -ENXIO without altering the existing behavior of\nmd_autodetect_dev() calls.","modified":"2026-04-02T12:20:20.186708Z","published":"2024-10-21T11:53:40.071Z","related":["MGASA-2024-0344","MGASA-2024-0345","SUSE-SU-2024:3983-1","SUSE-SU-2024:3984-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47705.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/26e197b7f9240a4ac301dd0ad520c0c697c2ea7d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/652039ba477c9a4ab43740cf2cb0d068d53508c2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/80f5bfbb80ea1615290dbc24f49d3d8c86db58fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/afe53ea9b378c376101d99d216f13b6256f75189"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc4d21d9492db4e534d3e01253cf885c90dd2a8b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47705.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47705"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b72053072c0bbe9f1cdfe2ffa3c201c185da2201"},{"fixed":"4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f"},{"fixed":"cc4d21d9492db4e534d3e01253cf885c90dd2a8b"},{"fixed":"64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed"},{"fixed":"80f5bfbb80ea1615290dbc24f49d3d8c86db58fe"},{"fixed":"652039ba477c9a4ab43740cf2cb0d068d53508c2"},{"fixed":"afe53ea9b378c376101d99d216f13b6256f75189"},{"fixed":"26e197b7f9240a4ac301dd0ad520c0c697c2ea7d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47705.json"}}],"schema_version":"1.7.5"}