{"id":"CVE-2026-98525","aliases":["CVE-2026-98525"],"related":[],"kind":"vulnerability","state":"published","title":"mctp: route: iterate socket tag list in mctp_lookup_prealloc_tag()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmctp: route: iterate socket tag list in mctp_lookup_prealloc_tag()\n\nWhen a socket transmits a packet with MCTP_TAG_PREALLOC set,\nmctp_lookup_prealloc_tag() iterates over the per-netns &mns->keys list\nand matches netid, req_tag, peer_addr, and manual_alloc, without\nchecking whether tmp->sk == &msk->sk. This allows any MCTP socket in the\nsame network namespace to use and consume another socket's preallocated\ntag.\n\nIterate the socket's own tag list (&msk->keys via sklist) instead of the\nnamespace-wide &mns->keys list in mctp_lookup_prealloc_tag(), ensuring\nthat only tags allocated by msk are matched.\n\nTested in QEMU against Linux 7.3.0-rc3 by allocating a manual tag\n(0x18) on socket A via SIOCMCTPALLOCTAG for peer EID 9 and sending a\n4-byte message with MCTP_TAG_PREALLOC from socket B in the same network\nnamespace. On the unfixed kernel, sendto(sock_b) using socket A's\npreallocated tag succeeds (ret = 4); with this patch applied,\nsendto(sock_b) fails with -ENOENT (errno = 2) while sendto(sock_a)\nsucceeds (ret = 4).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmctp: route: iterate socket tag list in mctp_lookup_prealloc_tag()\n\nWhen a socket transmits a packet with MCTP_TAG_PREALLOC set,\nmctp_lookup_prealloc_tag() iterates over the per-netns &mns->keys list\nand matches netid, req_tag, peer_addr, and manual_alloc, without\nchecking whether tmp->sk == &msk->sk. This allows any MCTP socket in the\nsame network namespace to use and consume another socket's preallocated\ntag.\n\nIterate the socket's own tag list (&msk->keys via sklist) instead of the\nnamespace-wide &mns->keys list in mctp_lookup_prealloc_tag(), ensuring\nthat only tags allocated by msk are matched.\n\nTested in QEMU against Linux 7.3.0-rc3 by allocating a manual tag\n(0x18) on socket A via SIOCMCTPALLOCTAG for peer EID 9 and sending a\n4-byte message with MCTP_TAG_PREALLOC from socket B in the same network\nnamespace. On the unfixed kernel, sendto(sock_b) using socket A's\npreallocated tag succeeds (ret = 4); with this patch applied,\nsendto(sock_b) fails with -ENOENT (errno = 2) while sendto(sock_a)\nsucceeds (ret = 4).","source":"cvelist"}],"published":"2026-10-18T15:17:43.216Z","modified":"2026-11-23T08:17:27.273Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"de069b0e333094441e84c309ceb2af0129f79396","status":"affected"},{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"4a2209a5390df1e491296a87b22a14a55da0eadf","status":"affected"},{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"09299addab11857e92eca55cd8ef3350b927c90c","status":"affected"},{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"e35cb500dd14882f8dee61783fccd1823fd3ab0d","status":"affected"},{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"f178300e2f56ca9ec2a3a0090608730bbee0af7b","status":"affected"},{"type":"git","introduced":"63ed1aab3d40aa61aaa66819bdce9377ac7f40fa","fixed":"26cc0e69cce062cd3aa6fae33074684669c35a71","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/de069b0e333094441e84c309ceb2af0129f79396","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a2209a5390df1e491296a87b22a14a55da0eadf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09299addab11857e92eca55cd8ef3350b927c90c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e35cb500dd14882f8dee61783fccd1823fd3ab0d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f178300e2f56ca9ec2a3a0090608730bbee0af7b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26cc0e69cce062cd3aa6fae33074684669c35a71","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98525","url":"https://www.cve.org/CVERecord?id=CVE-2026-98525","licence":"CVE Terms of Use","modified":"2026-11-23T08:00:04.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98525","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98525","licence":"Public domain","modified":"2026-11-23T08:17:27.273Z"}],"updatedAt":"2026-11-25T22:59:45.213Z","epss":{"score":0.00216,"percentile":0.12729,"date":"2026-12-01T12:00:22.000Z"}}