{ "dataType": "CVE_RECORD", "cveMetadata": { "cveId": "CVE-2024-26872", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-02-19T14:20:24.184Z", "datePublished": "2024-04-17T10:27:32.025Z", "dateUpdated": "2026-08-05T11:28:03.037Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:28:03.037Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/srpt: Do not register event handler until srpt device is fully setup\n\nUpon rare occasions, KASAN reports a use-after-free Write\nin srpt_refresh_port().\n\nThis seems to be because an event handler is registered before the\nsrpt device is fully setup and a race condition upon error may leave a\npartially setup event handler in place.\n\nInstead, only register the event handler after srpt device initialization\nis complete." } ], "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 - The race is driven through local interfaces — RDMA netlink `RDMA_NLDEV_CMD_NEWLINK` to register an IB device (triggering `srpt_add_one`) and netdev up/down to dispatch the async IB port events. No remote packet processing is involved in reaching the vulnerable window.\nAC:L - The attacker controls both sides of the race: repeated `rdma link add`/`del` of soft-RoCE devices re-enters `srpt_add_one()` at will, while concurrent netdev link flaps generate `IB_EVENT_PORT_ACTIVE`/`IB_EVENT_PORT_ERR` inside the unprotected window, and keeping the netdev down makes `rdma_query_gid()` fail to force the `err_port` free path.\nPR:L - `nldev_newlink` is gated only by `netlink_capable(skb, CAP_NET_ADMIN)`, which resolves against the netns-owning user namespace, so an unprivileged user satisfies it via `unshare -Urn`; RDMA_NL_NLDEV is explicitly allowed in non-init net namespaces and `rxe_newlink()` adds no further restriction.\nUI:N - The attacker triggers device registration and the async IB events entirely from their own processes; no action by any other user or administrator is required.\nS:U - The corruption is confined to kernel slab memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The use-after-free on the freed `srpt_device`/`srpt_port` allocation lets the attacker reclaim the slab object with a chosen structure, turning the stale `sport` reference into a means of reading and disclosing arbitrary kernel memory.\nI:H - `srpt_refresh_port()` writes into the freed object — `sm_lid`, `lid`, a 16-byte `gid`, and two `snprintf()`-formatted strings — giving a multi-byte write into attacker-sprayed heap memory that can corrupt adjacent kernel structures and be leveraged for control-flow hijacking.\nA:H - Both failure modes crash the kernel: `schedule_work()` on a zeroed `work_struct` makes the kworker call a NULL `work->func`, and the use-after-free write reliably produces oopses/panics." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/infiniband/ulp/srpt/ib_srpt.c" ], "versions": [ { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "bdd895e0190c464f54f84579e7535d80276f0fc5", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "6413e78086caf7bf15639923740da0d91fdfd090", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "e362d007294955a4fb929e1c8978154a64efdcb6", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "85570b91e4820a0db9d9432098778cafafa7d217", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "7104a00fa37ae898a827381f1161fa3286c8b346", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "ec77fa12da41260c6bf9e060b89234b980c5130f", "status": "affected", "versionType": "git" }, { "version": "a42d985bd5b234da8b61347a78dc3057bf7bb94d", "lessThan": "c21a8870c98611e8f892511825c9607f1e2cd456", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/infiniband/ulp/srpt/ib_srpt.c" ], "versions": [ { "version": "3.3", "status": "affected" }, { "version": "0", "lessThan": "3.3", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.214", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.153", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.83", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.23", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.7.11", "lessThanOrEqual": "6.7.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.8.2", "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": "3.3", "versionEndExcluding": "5.10.214" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "5.15.153" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "6.1.83" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "6.6.23" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "6.7.11" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "6.8.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3", "versionEndExcluding": "6.9" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/bdd895e0190c464f54f84579e7535d80276f0fc5" }, { "url": "https://git.kernel.org/stable/c/6413e78086caf7bf15639923740da0d91fdfd090" }, { "url": "https://git.kernel.org/stable/c/e362d007294955a4fb929e1c8978154a64efdcb6" }, { "url": "https://git.kernel.org/stable/c/85570b91e4820a0db9d9432098778cafafa7d217" }, { "url": "https://git.kernel.org/stable/c/7104a00fa37ae898a827381f1161fa3286c8b346" }, { "url": "https://git.kernel.org/stable/c/ec77fa12da41260c6bf9e060b89234b980c5130f" }, { "url": "https://git.kernel.org/stable/c/c21a8870c98611e8f892511825c9607f1e2cd456" } ], "title": "RDMA/srpt: Do not register event handler until srpt device is fully setup", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "title": "CISA ADP Vulnrichment", "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-26872", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-05-28T19:53:54.471645Z" } } } ], "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-06-04T17:48:33.197Z" } }, { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-02T00:21:04.204Z" }, "title": "CVE Program Container", "references": [ { "url": "https://git.kernel.org/stable/c/bdd895e0190c464f54f84579e7535d80276f0fc5", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/6413e78086caf7bf15639923740da0d91fdfd090", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/e362d007294955a4fb929e1c8978154a64efdcb6", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/85570b91e4820a0db9d9432098778cafafa7d217", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/7104a00fa37ae898a827381f1161fa3286c8b346", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/ec77fa12da41260c6bf9e060b89234b980c5130f", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/c21a8870c98611e8f892511825c9607f1e2cd456", "tags": [ "x_transferred" ] }, { "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html", "tags": [ "x_transferred" ] } ] }, { "x_adpType": "supplier", "providerMetadata": { "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e", "shortName": "siemens-SADP", "dateUpdated": "2026-05-12T11:49:47.495Z" }, "affected": [ { "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" } ] } ] }, "dataVersion": "5.2" }