{"id":"CVE-2026-143141","summary":"gtp: free the skb after handling an echo response","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngtp: free the skb after handling an echo response\n\ngtp0_handle_echo_resp() and gtp1u_handle_echo_resp() return the result\nof genlmsg_multicast_netns() to gtp_encap_recv().  When the netlink\nnotification is delivered that result is 0, and gtp_encap_recv() treats\n0 as \"the skb has been consumed\":\n\n\tswitch (ret) {\n\tcase 1:\n\t\tnetdev_dbg(gtp-\u003edev, \"pass up to the process\\n\");\n\t\tbreak;\n\tcase 0:\n\t\tbreak;\n\tcase -1:\n\t\tnetdev_dbg(gtp-\u003edev, \"GTP packet has been dropped\\n\");\n\t\tkfree_skb(skb);\n\t\tret = 0;\n\t\tbreak;\n\t}\n\nThe echo response handlers only read from the skb and never free it or\npass it on, so every echo response that is reported to a listener on the\ngtp multicast group leaks the skb.  Echo responses are handled for any\npeer when the UDP sockets were created by the kernel, so a remote host\ncan leak memory on the receiver by sending GTP echo responses while a\nprocess with CAP_NET_ADMIN is subscribed to the gtp multicast group, for\nexample a daemon that monitors echo responses.\n\nThe error paths do not leak but have a related problem.  -ENOMEM and the error from\ngenlmsg_multicast_netns() (-ESRCH when nobody listens) are not -1, so\nthey are returned unchanged to the UDP stack, which takes a negative\nvalue from encap_rcv() as a request to resubmit the packet to the\nprotocol with that number.\n\nReturn -1 when the notification cannot be built, so that\ngtp_encap_recv() drops the skb, and consume the skb once the\nnotification has been handed to netlink, whether or not anybody is\nlistening.\n\nFound by LLM-assisted source review, untested.","modified":"2026-12-03T11:01:25.147862249Z","published":"2026-12-03T09:19:47.360Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143141.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4674692b3affeb91975f171cc1373d4f19d590d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d9f6e5e6a41fcdd984db5564743db0ca9328780c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f17b293d155f377e4cff582b8113991d2ad346d6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143141.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143141"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d33bd757d362699cfce3c68b53cd12b947d196f4"},{"fixed":"b4674692b3affeb91975f171cc1373d4f19d590d"},{"fixed":"d9f6e5e6a41fcdd984db5564743db0ca9328780c"},{"fixed":"2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5"},{"fixed":"f17b293d155f377e4cff582b8113991d2ad346d6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143141.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143141.json"}}],"schema_version":"1.9.2"}