{"id":"CVE-2026-143141","state":"PUBLISHED","title":"gtp: free the skb after handling an echo response","description":"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->dev, \"pass up to the process\\n\");\n\t\tbreak;\n\tcase 0:\n\t\tbreak;\n\tcase -1:\n\t\tnetdev_dbg(gtp->dev, \"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.","publishedAt":"2026-12-03T09:19:47.360Z","updatedAt":"2026-12-03T09:19:47.360Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"b4674692b3affeb91975f171cc1373d4f19d590d","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"d9f6e5e6a41fcdd984db5564743db0ca9328780c","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"f17b293d155f377e4cff582b8113991d2ad346d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/gtp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/gtp.c"]}],"references":["https://git.kernel.org/stable/c/b4674692b3affeb91975f171cc1373d4f19d590d","https://git.kernel.org/stable/c/d9f6e5e6a41fcdd984db5564743db0ca9328780c","https://git.kernel.org/stable/c/2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5","https://git.kernel.org/stable/c/f17b293d155f377e4cff582b8113991d2ad346d6"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143141.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143141","state":"PUBLISHED","datePublished":"2026-12-03T09:19:47.360Z","dateUpdated":"2026-12-03T09:19:47.360Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.353Z"},"containers":{"cna":{"title":"gtp: free the skb after handling an echo response","descriptions":[{"lang":"en","value":"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->dev, \"pass up to the process\\n\");\n\t\tbreak;\n\tcase 0:\n\t\tbreak;\n\tcase -1:\n\t\tnetdev_dbg(gtp->dev, \"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"b4674692b3affeb91975f171cc1373d4f19d590d","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"d9f6e5e6a41fcdd984db5564743db0ca9328780c","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5","versionType":"git"},{"version":"d33bd757d362699cfce3c68b53cd12b947d196f4","status":"affected","lessThan":"f17b293d155f377e4cff582b8113991d2ad346d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/gtp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/gtp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b4674692b3affeb91975f171cc1373d4f19d590d"},{"url":"https://git.kernel.org/stable/c/d9f6e5e6a41fcdd984db5564743db0ca9328780c"},{"url":"https://git.kernel.org/stable/c/2f3f3fd9e922b84a8801c39b1597a2a6986b9ef5"},{"url":"https://git.kernel.org/stable/c/f17b293d155f377e4cff582b8113991d2ad346d6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:47.360Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}