CVE-2024-26636

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
18/03/2024
Last modified:
10/03/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> llc: make llc_ui_sendmsg() more robust against bonding changes<br /> <br /> syzbot was able to trick llc_ui_sendmsg(), allocating an skb with no<br /> headroom, but subsequently trying to push 14 bytes of Ethernet header [1]<br /> <br /> Like some others, llc_ui_sendmsg() releases the socket lock before<br /> calling sock_alloc_send_skb().<br /> Then it acquires it again, but does not redo all the sanity checks<br /> that were performed.<br /> <br /> This fix:<br /> <br /> - Uses LL_RESERVED_SPACE() to reserve space.<br /> - Check all conditions again after socket lock is held again.<br /> - Do not account Ethernet header for mtu limitation.<br /> <br /> [1]<br /> <br /> skbuff: skb_under_panic: text:ffff800088baa334 len:1514 put:14 head:ffff0000c9c37000 data:ffff0000c9c36ff2 tail:0x5dc end:0x6c0 dev:bond0<br /> <br /> kernel BUG at net/core/skbuff.c:193 !<br /> Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP<br /> Modules linked in:<br /> CPU: 0 PID: 6875 Comm: syz-executor.0 Not tainted 6.7.0-rc8-syzkaller-00101-g0802e17d9aca-dirty #0<br /> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023<br /> pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)<br /> pc : skb_panic net/core/skbuff.c:189 [inline]<br /> pc : skb_under_panic+0x13c/0x140 net/core/skbuff.c:203<br /> lr : skb_panic net/core/skbuff.c:189 [inline]<br /> lr : skb_under_panic+0x13c/0x140 net/core/skbuff.c:203<br /> sp : ffff800096f97000<br /> x29: ffff800096f97010 x28: ffff80008cc8d668 x27: dfff800000000000<br /> x26: ffff0000cb970c90 x25: 00000000000005dc x24: ffff0000c9c36ff2<br /> x23: ffff0000c9c37000 x22: 00000000000005ea x21: 00000000000006c0<br /> x20: 000000000000000e x19: ffff800088baa334 x18: 1fffe000368261ce<br /> x17: ffff80008e4ed000 x16: ffff80008a8310f8 x15: 0000000000000001<br /> x14: 1ffff00012df2d58 x13: 0000000000000000 x12: 0000000000000000<br /> x11: 0000000000000001 x10: 0000000000ff0100 x9 : e28a51f1087e8400<br /> x8 : e28a51f1087e8400 x7 : ffff80008028f8d0 x6 : 0000000000000000<br /> x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082b78714<br /> x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000089<br /> Call trace:<br /> skb_panic net/core/skbuff.c:189 [inline]<br /> skb_under_panic+0x13c/0x140 net/core/skbuff.c:203<br /> skb_push+0xf0/0x108 net/core/skbuff.c:2451<br /> eth_header+0x44/0x1f8 net/ethernet/eth.c:83<br /> dev_hard_header include/linux/netdevice.h:3188 [inline]<br /> llc_mac_hdr_init+0x110/0x17c net/llc/llc_output.c:33<br /> llc_sap_action_send_xid_c+0x170/0x344 net/llc/llc_s_ac.c:85<br /> llc_exec_sap_trans_actions net/llc/llc_sap.c:153 [inline]<br /> llc_sap_next_state net/llc/llc_sap.c:182 [inline]<br /> llc_sap_state_process+0x1ec/0x774 net/llc/llc_sap.c:209<br /> llc_build_and_send_xid_pkt+0x12c/0x1c0 net/llc/llc_sap.c:270<br /> llc_ui_sendmsg+0x7bc/0xb1c net/llc/af_llc.c:997<br /> sock_sendmsg_nosec net/socket.c:730 [inline]<br /> __sock_sendmsg net/socket.c:745 [inline]<br /> sock_sendmsg+0x194/0x274 net/socket.c:767<br /> splice_to_socket+0x7cc/0xd58 fs/splice.c:881<br /> do_splice_from fs/splice.c:933 [inline]<br /> direct_splice_actor+0xe4/0x1c0 fs/splice.c:1142<br /> splice_direct_to_actor+0x2a0/0x7e4 fs/splice.c:1088<br /> do_splice_direct+0x20c/0x348 fs/splice.c:1194<br /> do_sendfile+0x4bc/0xc70 fs/read_write.c:1254<br /> __do_sys_sendfile64 fs/read_write.c:1322 [inline]<br /> __se_sys_sendfile64 fs/read_write.c:1308 [inline]<br /> __arm64_sys_sendfile64+0x160/0x3b4 fs/read_write.c:1308<br /> __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]<br /> invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51<br /> el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136<br /> do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155<br /> el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678<br /> el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696<br /> el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595<br /> Code: aa1803e6 aa1903e7 a90023f5 94792f6a (d4210000)

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 2.6.12 (including) 4.19.307 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.269 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.210 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.149 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.76 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.15 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.7.3 (excluding)
cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*