{
    "dataType": "CVE_RECORD",
    "cveMetadata": {
        "cveId": "CVE-2024-27396",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-02-25T13:47:42.677Z",
        "datePublished": "2024-05-09T16:37:18.867Z",
        "dateUpdated": "2026-08-05T11:29:30.275Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:29:30.275Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gtp: Fix Use-After-Free in gtp_dellink\n\nSince call_rcu, which is called in the hlist_for_each_entry_rcu traversal\nof gtp_dellink, is not part of the RCU read critical section, it\nis possible that the RCU grace period will pass during the traversal and\nthe key will be free.\n\nTo prevent this, it should be changed to hlist_for_each_entry_safe."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - `gtp_dellink()` is reached only through local interfaces — rtnetlink `RTM_DELLINK` on a gtp device, or `gtp_net_exit_batch_rtnl()` during network-namespace teardown. Received GTP-U packets only look up PDP contexts and never reach the deletion path, so no remote packet can drive the vulnerable traversal.\nAC:L - The attacker controls both sides of the race: they choose the hash size and the number of PDP contexts (lengthening the unprotected traversal), can pin CPUs and generate load to force preemption inside the window, and can drive RCU grace periods from other tasks. On preemptible-RCU kernels the grace period reliably completes mid-loop, and heap grooming to reallocate the freed `pdp_ctx` is standard slab-spray work under attacker control.\nPR:L - The trigger is gated by `netlink_net_capable(CAP_NET_ADMIN)`, which is satisfied with CAP_NET_ADMIN inside a user-namespace-owned netns (`unshare -Urn`), and the netns-teardown path runs gtp_dellink automatically when such a namespace is destroyed. In containerized mobile-core deployments the PDP contexts are populated by a privileged daemon from remote signaling, so a userns-root attacker needs no real root to reach the vulnerable loop.\nUI:N - The attacker performs the link deletion or namespace exit themselves; no action by any other user or administrator is required.\nS:U - The use-after-free corrupts kernel heap memory within the same security authority; there is no crossing of a VM, IOMMU, or hypervisor boundary.\nC:H - The traversal reads a freed `pdp_ctx` whose contents the attacker can control via heap spraying, and the resulting attacker-influenced pointer is dereferenced as a `pdp_ctx`, enabling controlled reads of kernel memory and full kernel-memory disclosure once combined with the write primitive.\nI:H - The stale pointer is passed to `pdp_context_delete()`, so `hlist_del_rcu()` performs an unlink write (`*pprev = next; next->pprev = pprev`) at attacker-influenced addresses, and the queued `pdp_context_free()` later does `sock_put()` on an arbitrary pointer plus an arbitrary `kfree()` — a path to arbitrary write and privilege escalation.\nA:H - Even without successful heap grooming the loop dereferences poisoned/freed slab memory and then unlinks and frees it again, producing a guaranteed oops, double free, or slab corruption panic that takes the machine down."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/gtp.c"
                    ],
                    "versions": [
                        {
                            "version": "043a283d24f40fea4c8a8d06b0e2694c8e372200",
                            "lessThan": "07b20d0a3dc13fb1adff10b60021a4924498da58",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c185e1d6e2752a4b656c3ca878c525fa11f55757",
                            "lessThan": "718df1bc226c383dd803397d7f5d95557eb81ac7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "0caff3e6390f840666b8dc1ecebf985c2ef3f1dd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "2e74b3fd6bf542349758f283676dff3660327c07",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "25a1c2d4b1fcf938356a9688a96a6456abd44b29",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "2aacd4de45477582993f8a8abb9505a06426bfb6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "cd957d1716ec979d8f5bf38fc659aeb9fdaa2474",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94dc550a5062030569d4aa76e10e50c8fc001930",
                            "lessThan": "f2a904107ee2b647bb7794a1a82b67740d7c8a64",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a29c4303930bc0c25ae6a4f365dcdef71447b4ea",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4.19.93",
                            "lessThan": "4.19.313",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.8",
                            "lessThan": "5.4.275",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.162",
                            "lessThan": "4.15",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/gtp.c"
                    ],
                    "versions": [
                        {
                            "version": "5.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.313",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.275",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.216",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.158",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.90",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.30",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8.9",
                            "lessThanOrEqual": "6.8.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.19.93",
                                    "versionEndExcluding": "4.19.313"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4.8",
                                    "versionEndExcluding": "5.4.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.10.216"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.15.158"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.1.90"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.6.30"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.8.9"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.9"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14.162"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/07b20d0a3dc13fb1adff10b60021a4924498da58"
                },
                {
                    "url": "https://git.kernel.org/stable/c/718df1bc226c383dd803397d7f5d95557eb81ac7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0caff3e6390f840666b8dc1ecebf985c2ef3f1dd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2e74b3fd6bf542349758f283676dff3660327c07"
                },
                {
                    "url": "https://git.kernel.org/stable/c/25a1c2d4b1fcf938356a9688a96a6456abd44b29"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2aacd4de45477582993f8a8abb9505a06426bfb6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cd957d1716ec979d8f5bf38fc659aeb9fdaa2474"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f2a904107ee2b647bb7794a1a82b67740d7c8a64"
                }
            ],
            "title": "net: gtp: Fix Use-After-Free in gtp_dellink",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-27396",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-05-28T15:23:40.567279Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:47:11.173Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T00:34:52.256Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/07b20d0a3dc13fb1adff10b60021a4924498da58",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/718df1bc226c383dd803397d7f5d95557eb81ac7",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/0caff3e6390f840666b8dc1ecebf985c2ef3f1dd",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/2e74b3fd6bf542349758f283676dff3660327c07",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/25a1c2d4b1fcf938356a9688a96a6456abd44b29",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/2aacd4de45477582993f8a8abb9505a06426bfb6",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/cd957d1716ec979d8f5bf38fc659aeb9fdaa2474",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/f2a904107ee2b647bb7794a1a82b67740d7c8a64",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "x_adpType": "supplier",
                "providerMetadata": {
                    "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
                    "shortName": "siemens-SADP",
                    "dateUpdated": "2026-05-12T11:51:34.442Z"
                },
                "affected": [
                    {
                        "vendor": "Siemens",
                        "product": "RUGGEDCOM RST2428P",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "0",
                                "lessThan": "V3.1",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    },
                    {
                        "vendor": "Siemens",
                        "product": "SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family",
                        "versions": [
                            {
                                "status": "unaffected",
                                "version": "0",
                                "lessThan": "*",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    },
                    {
                        "vendor": "Siemens",
                        "product": "SCALANCE XCM-/XRM-/XCH-/XRH-300 family",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "0",
                                "lessThan": "V3.1",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    },
                    {
                        "vendor": "Siemens",
                        "product": "SIMATIC S7-1500 TM MFP - GNU/Linux subsystem",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "0",
                                "lessThan": "*",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    }
                ],
                "references": [
                    {
                        "url": "https://cert-portal.siemens.com/productcert/html/ssa-265688.html"
                    },
                    {
                        "url": "https://cert-portal.siemens.com/productcert/html/ssa-613116.html"
                    }
                ]
            }
        ]
    },
    "dataVersion": "5.2"
}