In the Linux kernel, the following vulnerability has been resolved:
gtp: fix use-after-free and null-ptr-deref in gtpgenldump_pdp()
The gtpnetops pernet operations structure for the subsystem must be registered before registering the generic netlink family.
Syzkaller hit 'general protection fault in gtpgenldump_pdp' bug:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 5826 Comm: gtp Not tainted 6.8.0-rc3-std-def-alt1 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-alt1 04/01/2014 RIP: 0010:gtpgenldumppdp+0x1be/0x800 [gtp] Code: c6 89 c6 e8 64 e9 86 df 58 45 85 f6 0f 85 4e 04 00 00 e8 c5 ee 86 df 48 8b 54 24 18 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 de 05 00 00 48 8b 44 24 18 4c 8b 30 4c 39 f0 74 RSP: 0018:ffff888014107220 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88800fcda588 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f1be4eb05c0(0000) GS:ffff88806ce80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1be4e766cf CR3: 000000000c33e000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: <TASK> ? showregs+0x90/0xa0 ? dieaddr+0x50/0xd0 ? excgeneralprotection+0x148/0x220 ? asmexcgeneralprotection+0x22/0x30 ? gtpgenldumppdp+0x1be/0x800 [gtp] ? allocskb+0x1dd/0x350 ? _pfxallocskb+0x10/0x10 genldumpit+0x11d/0x230 netlinkdump+0x5b9/0xce0 ? lockdephardirqsonprepare+0x253/0x430 ? _pfxnetlinkdump+0x10/0x10 ? kasansavetrack+0x10/0x40 ? _kasankmalloc+0x9b/0xa0 ? genlstart+0x675/0x970 _netlinkdumpstart+0x6fc/0x9f0 genlfamilyrcvmsgdumpit+0x1bb/0x2d0 ? _pfxgenlfamilyrcvmsgdumpit+0x10/0x10 ? genlopfromsmall+0x2a/0x440 ? capcapable+0x1d0/0x240 ? _pfxgenlstart+0x10/0x10 ? _pfxgenldumpit+0x10/0x10 ? _pfxgenldone+0x10/0x10 ? security_capable+0x9d/0xe0
{ "vanir_signatures": [ { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-11caffcb", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba6b8b02a3314e62571a540efa96560888c5f03e", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-2e99ed66", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba6b8b02a3314e62571a540efa96560888c5f03e", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-32baee7f", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0ecdfa679189d26aedfe24212d4e69e42c2c861", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-38d05b4b", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5013bd54d283eda5262c9ae3bcc966d01daf8576", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-3c237c5f", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@136cfaca22567a03bbb3bf53a43d8cb5748b80ec", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-3e496385", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8cbd1791900b5d96466eede8e9439a5b9ca4de7", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-4d2d8954", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e534fd15e5c2ca15821c897352cf0e8a3e30dca", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-4dc80c3a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a576308800be28f2eaa099e7caad093b97d66e77", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-55094209", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e534fd15e5c2ca15821c897352cf0e8a3e30dca", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-5899f157", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5013bd54d283eda5262c9ae3bcc966d01daf8576", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-6c7f7c1a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a576308800be28f2eaa099e7caad093b97d66e77", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-6d24b2d6", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3963f16cc7643b461271989b712329520374ad2a", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-7c8bef4a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@136cfaca22567a03bbb3bf53a43d8cb5748b80ec", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-b6d5f4ee", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3963f16cc7643b461271989b712329520374ad2a", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-cbd7179e", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0ecdfa679189d26aedfe24212d4e69e42c2c861", "deprecated": false, "digest": { "line_hashes": [ "8822049945339098530543748185222710561", "334604326699244873876554148847145209602", "53437972852799476942731152805112606003", "288725841559241406584199547144910543618", "90925281549185681103401008166910310147", "126551589838797297437689929770991151533", "169060340169603160146730530846088115267", "186488152343666435934821929875187702176", "100992997017990072531131573481829275748", "132319880915894091513592852591930818952", "17649280512881940944245711658740848962", "335958879321965656823232403950192014303", "295435030500505401920360916265123755934", "17014441901607155150388552974942240703" ], "threshold": 0.9 }, "signature_version": "v1" }, { "signature_type": "Function", "target": { "function": "gtp_init", "file": "drivers/net/gtp.c" }, "id": "CVE-2024-26754-d25c4e07", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8cbd1791900b5d96466eede8e9439a5b9ca4de7", "deprecated": false, "digest": { "length": 594.0, "function_hash": "24049485930996168124820940543402579039" }, "signature_version": "v1" } ] }