linux: In the Linux kernel, the following vulnerability has been resolved: inet_diag: Initialize pad field in struct inet_d...
CVE-2024-42106 is fixed in 59 products on 1 platform, first by DEBIAN-CVE-2024-42106, released July 30, 2024. It is not reported as exploited. Patch Radar priority: Routine.
In the Linux kernel, the following vulnerability has been resolved: inet_diag: Initialize pad field in struct inet_diag_req_v2 KMSAN reported uninit-value access in raw_lookup() [1]. Diag for raw sockets uses the pad field in struct inet_diag_req_v2 for the underlying protocol. This field corresponds to the sdiag_raw_protocol field in struct inet_diag_req_raw. inet_diag_get_exact_compat() converts inet_diag_req to inet_diag_req_v2, but leaves the pad field uninitialized. So the issue occurs when raw_lookup() accesses the sdiag_raw_protocol field. Fix this by initializing the pad field in inet_diag_get_exact_compat(). Also, do the same fix in inet_diag_dump_compat() to avoid the similar issue in the future. [1] BUG: KMSAN: uninit-value in raw_lookup net/ipv4/raw_diag.c:49 [inline] BUG: KMSAN: uninit-value in raw_sock_get+0x657/0x800 net/ipv4/raw_diag.c:71 raw_lookup net/ipv4/raw_diag.c:49 [inline] raw_sock_get+0x657/0x800 net/ipv4/raw_diag.c:71 raw_diag_dump_one+0xa1/0x660 net/ipv4/raw_diag.c:99 inet_diag_cmd_exact+0x7d9/0x980 inet_diag_get_exact_compat net/ipv4/inet_diag.c:1404 [inline] inet_diag_rcv_msg_compat+0x469/0x530 net/ipv4/inet_diag.c:1426 sock_diag_rcv_msg+0x23d/0x740 net/core/sock_diag.c:282 netlink_rcv_skb+0x537/0x670 net/netlink/af_netlink.c:2564 sock_diag_rcv+0x35/0x40 net/core/sock_diag.c:297 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0xe74/0x1240 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x10c6/0x1260 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x332/0x3d0 net/socket.c:745 ____sys_sendmsg+0x7f0/0xb70 net/socket.c:2585 ___sys_sendmsg+0x271/0x3b0 net/socket.c:2639 __sys_sendmsg net/socket.c:2668 [inline] __do_sys_sendmsg net/socket.c:2677 [inline] __se_sys_sendmsg net/socket.c:2675 [inline] __x64_sys_sendmsg+0x27e/0x4a0 net/socket.c:2675 x64_sys_call+0x135e/0x3ce0 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd9/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: raw_sock_get+0x650/0x800 net/ipv4/raw_diag.c:71 raw_diag_dump_one+0xa1/0x660 net/ipv4/raw_diag.c:99 inet_diag_cmd_exact+0x7d9/0x980 inet_diag_get_exact_compat net/ipv4/inet_diag.c:1404 [inline] inet_diag_rcv_msg_compat+0x469/0x530 net/ipv4/inet_diag.c:1426 sock_diag_rcv_msg+0x23d/0x740 net/core/sock_diag.c:282 netlink_rcv_skb+0x537/0x670 net/netlink/af_netlink.c:2564 sock_diag_rcv+0x35/0x40 net/core/sock_diag.c:297 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0xe74/0x1240 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x10c6/0x1260 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x332/0x3d0 net/socket.c:745 ____sys_sendmsg+0x7f0/0xb70 net/socket.c:2585 ___sys_sendmsg+0x271/0x3b0 net/socket.c:2639 __sys_sendmsg net/socket.c:2668 [inline] __do_sys_sendmsg net/socket.c:2677 [inline] __se_sys_sendmsg net/socket.c:2675 [inline] __x64_sys_sendmsg+0x27e/0x4a0 net/socket.c:2675 x64_sys_call+0x135e/0x3ce0 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd9/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable req.i created at: inet_diag_get_exact_compat net/ipv4/inet_diag.c:1396 [inline] inet_diag_rcv_msg_compat+0x2a6/0x530 net/ipv4/inet_diag.c:1426 sock_diag_rcv_msg+0x23d/0x740 net/core/sock_diag.c:282 CPU: 1 PID: 8888 Comm: syz-executor.6 Not tainted 6.10.0-rc4-00217-g35bb670d65fc #32 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| bpftool · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| bpftool · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| bpftool · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| bpftool-debuginfo · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| dtb-aarch64 · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-64kb · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-64kb · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-azure · opensuse-leap 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-azure · sles 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-debug · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-debuginfo · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-debuginfo-common-aarch64 · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-debuginfo-common-x86_64 · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-default · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-default · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-default-base · opensuse-leap 15.6 | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-default-base · sles 15.6 | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-devel · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-docs · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-docs · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-headers · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-kvmsmall · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-libbpf · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-libbpf-devel · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-libbpf-static · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-livepatch-6.1.102-108.177 · amzn 2023 | 1.0-0.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-livepatch-SLE15-SP6-RT_Update_2 · sles 15.6 | 1-150600.1.3.2 | SUSE-SU-2024:3195-1 | Sep 10, 2024 |
| kernel-livepatch-SLE15-SP6_Update_4 · sles 15.6 | 1-150600.13.3.3 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-modules-extra · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-modules-extra-common · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-obs-build · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-obs-build · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-obs-qa · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-rt · opensuse-leap 15.6 | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 | Sep 10, 2024 |
| kernel-rt_debug · opensuse-leap 15.6 | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 | Sep 10, 2024 |
| kernel-source · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-source · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-source-azure · opensuse-leap 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-source-azure · sles 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-source-rt · opensuse-leap 15.6 | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 | Sep 10, 2024 |
| kernel-syms · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-syms · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-syms-azure · opensuse-leap 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-syms-azure · sles 15.6 | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 | Sep 10, 2024 |
| kernel-syms-rt · opensuse-leap 15.6 | 6.4.0-150600.10.8.1 | SUSE-SU-2024:3195-1 | Sep 10, 2024 |
| kernel-tools · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-tools-debuginfo · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-tools-devel · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| kernel-uek · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek · ol 8 | 0:5.4.17-2136.335.4.el8uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-container · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-container · ol 8 | 0:5.4.17-2136.335.4.el8 | ELSA-2024-12612 | Sep 11, 2024 |
| kernel-uek-container · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-container-debug · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-container-debug · ol 8 | 0:5.4.17-2136.335.4.el8 | ELSA-2024-12612 | Sep 11, 2024 |
| kernel-uek-container-debug · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-core · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-core · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug · ol 8 | 0:5.4.17-2136.335.4.el8uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek-debug · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-core · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-core · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-devel · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-devel · ol 8 | 0:5.4.17-2136.335.4.el8uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek-debug-devel · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-modules · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-modules · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-modules-extra · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-debug-modules-extra · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-devel · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-devel · ol 8 | 0:5.4.17-2136.335.4.el8uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek-devel · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-doc · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-doc · ol 8 | 0:5.4.17-2136.335.4.el8uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek-doc · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-modules · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-modules · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-modules-extra · ol 8 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-modules-extra · ol 9 | 0:5.15.0-210.163.7.el9uek | ELSA-2024-12618 | Sep 12, 2024 |
| kernel-uek-tools · ol 8 | 0:5.4.17-2136.335.4.el7uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-uek-tools-libs · ol 8 | 0:5.4.17-2136.335.4.el7uek | ELSA-2024-12610 | Sep 10, 2024 |
| kernel-zfcpdump · opensuse-leap 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| kernel-zfcpdump · sles 15.6 | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 | Sep 23, 2024 |
| linux · Debian 12.15 (bookworm) | 6.1.98-1 | DEBIAN-CVE-2024-42106 | Jul 30, 2024 |
| linux · Debian 13.5 (trixie) | 6.9.9-1 | DEBIAN-CVE-2024-42106 | Jul 30, 2024 |
| linux · Debian 14 | 6.9.9-1 | DEBIAN-CVE-2024-42106 | Jul 30, 2024 |
| perf · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| perf · ol 8 | 0:5.4.17-2136.335.4.el7uek | ELSA-2024-12610 | Sep 10, 2024 |
| perf-debuginfo · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| python-perf · ol 8 | 0:5.4.17-2136.335.4.el7uek | ELSA-2024-12610 | Sep 10, 2024 |
| python3-perf · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
| python3-perf-debuginfo · amzn 2023 | 6.1.102-108.177.amzn2023 | ALAS2023-2024-679 | Aug 1, 2024 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.