In the Linux kernel, the following vulnerability has been resolved:
llc: make llcuisendmsg() more robust against bonding changes
syzbot was able to trick llcuisendmsg(), allocating an skb with no headroom, but subsequently trying to push 14 bytes of Ethernet header [1]
Like some others, llcuisendmsg() releases the socket lock before calling sockallocsend_skb(). Then it acquires it again, but does not redo all the sanity checks that were performed.
This fix:
[1]
skbuff: skbunderpanic: text:ffff800088baa334 len:1514 put:14 head:ffff0000c9c37000 data:ffff0000c9c36ff2 tail:0x5dc end:0x6c0 dev:bond0
kernel BUG at net/core/skbuff.c:193 ! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6875 Comm: syz-executor.0 Not tainted 6.7.0-rc8-syzkaller-00101-g0802e17d9aca-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : skbpanic net/core/skbuff.c:189 [inline] pc : skbunderpanic+0x13c/0x140 net/core/skbuff.c:203 lr : skbpanic net/core/skbuff.c:189 [inline] lr : skbunderpanic+0x13c/0x140 net/core/skbuff.c:203 sp : ffff800096f97000 x29: ffff800096f97010 x28: ffff80008cc8d668 x27: dfff800000000000 x26: ffff0000cb970c90 x25: 00000000000005dc x24: ffff0000c9c36ff2 x23: ffff0000c9c37000 x22: 00000000000005ea x21: 00000000000006c0 x20: 000000000000000e x19: ffff800088baa334 x18: 1fffe000368261ce x17: ffff80008e4ed000 x16: ffff80008a8310f8 x15: 0000000000000001 x14: 1ffff00012df2d58 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : e28a51f1087e8400 x8 : e28a51f1087e8400 x7 : ffff80008028f8d0 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800082b78714 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000089 Call trace: skbpanic net/core/skbuff.c:189 [inline] skbunderpanic+0x13c/0x140 net/core/skbuff.c:203 skbpush+0xf0/0x108 net/core/skbuff.c:2451 ethheader+0x44/0x1f8 net/ethernet/eth.c:83 devhardheader include/linux/netdevice.h:3188 [inline] llcmachdrinit+0x110/0x17c net/llc/llcoutput.c:33 llcsapactionsendxidc+0x170/0x344 net/llc/llcsac.c:85 llcexecsaptransactions net/llc/llcsap.c:153 [inline] llcsapnextstate net/llc/llcsap.c:182 [inline] llcsapstateprocess+0x1ec/0x774 net/llc/llcsap.c:209 llcbuildandsendxidpkt+0x12c/0x1c0 net/llc/llcsap.c:270 llcuisendmsg+0x7bc/0xb1c net/llc/afllc.c:997 socksendmsgnosec net/socket.c:730 [inline] _socksendmsg net/socket.c:745 [inline] socksendmsg+0x194/0x274 net/socket.c:767 splicetosocket+0x7cc/0xd58 fs/splice.c:881 dosplicefrom fs/splice.c:933 [inline] directspliceactor+0xe4/0x1c0 fs/splice.c:1142 splicedirecttoactor+0x2a0/0x7e4 fs/splice.c:1088 dosplicedirect+0x20c/0x348 fs/splice.c:1194 dosendfile+0x4bc/0xc70 fs/readwrite.c:1254 _dosyssendfile64 fs/readwrite.c:1322 [inline] _sesyssendfile64 fs/readwrite.c:1308 [inline] _arm64syssendfile64+0x160/0x3b4 fs/readwrite.c:1308 _invokesyscall arch/arm64/kernel/syscall.c:37 [inline] invokesyscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0svccommon+0x130/0x23c arch/arm64/kernel/syscall.c:136 doel0svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t64synchandler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 Code: aa1803e6 aa1903e7 a90023f5 94792f6a (d4210000)
[
{
"signature_type": "Function",
"id": "CVE-2024-26636-07b4dd69",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad555c816a50c6a6a8a86be1f9177673918c647",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-16cbfc95",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c22044270da68881074fda81a7d34812726cb249",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-1bada1cc",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d53b813ff8b177f86f149c2f744442681f720e4",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-5befbe1d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dad555c816a50c6a6a8a86be1f9177673918c647",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-69bad06e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafd3ad3fe03ef4d6632747be9ee15dc0029db4b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-71277d5e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c451c008f563d56d5e676c9dcafae565fcad84bb",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-748a2d41",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d53b813ff8b177f86f149c2f744442681f720e4",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-7e1cd220",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c451c008f563d56d5e676c9dcafae565fcad84bb",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-8dc567b6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c22044270da68881074fda81a7d34812726cb249",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-96093016",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84e9d10419f6f4f3f3cd8f9aaf44a48719aa4b1b",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-aa59e897",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b643d0defcbacd7fe548bc65c3e4e6f17dc5eb2d",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-b09274bd",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cafd3ad3fe03ef4d6632747be9ee15dc0029db4b",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-cdfafd21",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@04f2a74b562f3a7498be0399309669f342793d8c",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-d3101507",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84e9d10419f6f4f3f3cd8f9aaf44a48719aa4b1b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Function",
"id": "CVE-2024-26636-f202f8e6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@04f2a74b562f3a7498be0399309669f342793d8c",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "llc_ui_sendmsg",
"file": "net/llc/af_llc.c"
},
"digest": {
"function_hash": "294654683680898974975890781745380466312",
"length": 1957.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-26636-f589d713",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b643d0defcbacd7fe548bc65c3e4e6f17dc5eb2d",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/llc/af_llc.c"
},
"digest": {
"line_hashes": [
"320233795914446238744630023119505281692",
"27834811787494355220111671497333111133",
"14961687471925007374652669307717507263",
"5741222458372160228374080026036445748",
"83555482035232791345756852332157914897",
"302138818496670696096807621062379582961",
"98826187084662574221781894232458867796",
"292729639039013904854954608138969299036",
"240143739606309950088577333284980511052",
"74748556062367525187672680814888129900",
"132143587555730467767825806989542328637",
"72128949921974397042386414917792049521",
"67881963883346908402130577249713361329",
"192808753568862269286304052649416020511",
"317812143025878459143817881088190917026",
"325246316213399577086984543284142294899",
"215297080252049640665557877013318442775",
"238727563538256326942826222488551169683",
"55728646316371977425709114239756644945",
"119252471233728427680359481909591536539",
"244000763794162365182279342941689791815",
"79706398974138645677349571182348338513",
"256060444895621348165805749369148462197",
"331496557843030461710601082847199308632",
"27267862153215456162350458628492394515",
"300850851592743864535501561355574502125",
"257241191341838880259317563027131789359",
"337126707893413214709335480252396608818",
"268612506352101958960445784971138918965",
"168887759726027697549180240032572925598",
"318332109988663256530245183913799464388"
],
"threshold": 0.9
}
}
]