{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139355",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.929Z",
        "datePublished": "2026-11-30T13:33:59.657Z",
        "dateUpdated": "2026-12-02T09:21:42.450Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-02T09:21:42.450Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rxe: Hold netdev reference for transmit skbs\n\nrxe_init_packet() assigns skb->dev from an RCU-protected GID attribute\nwithout holding a netdev reference. If the netdev is unregistered before\nthe skb is freed, subsequent accesses to skb->dev are unsafe.\n\nHold a reference with dev_hold() when the skb is initialized and release\nit from the transmit destructor or via rxe_put_skb() on error paths that\nrun before the destructor is installed.\n\nskb->dev can change on the TX path (VLAN/bond/tunnel, ip_finish_output2,\netc.), so put must use the same netdev that was held. Stash that pointer\nin skb_shinfo()->destructor_arg: skb->cb is already used by\nrxe_pkt_info and is rewritten by IP control blocks.\n\nTo avoid blocking netdev unregistration on held skbs, flush all QPs to\nthe error state on NETDEV_GOING_DOWN and NETDEV_UNREGISTER so pending TX\nwork is drained and references can be dropped."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The stale skb->dev set in rxe_init_packet() is dereferenced by rxe_prepare()/rxe_find_route() on TX skbs built for QPs created via /dev/infiniband/uverbs (ibv_post_send). Remote READ requests can drive responder TX, but they supply no malformed data and corrupt no transiting data, so the vector stays local.\nAC:H - The base rxe netdev is pinned by the ib_device port reference until its QPs are destroyed. Only a VLAN/macvlan upper-device GID netdev can be freed in the window (GID ref dropped via call_rcu put_gid_ndev), and that unregister must land between rxe_init_packet() and ip_output(); the unprivileged sender cannot cause or time it.\nPR:L - The uverbs device node is 0666, and create_qp/modify_qp/post_send have no capability or netns check on the user-chosen sgid_index, so any local user can send through a VLAN GID on an admin-created rxe link (rdma link add itself needs init CAP_NET_ADMIN).\nUI:N - No victim action is needed: the attacker's own send work requests drive rxe_requester() to build skbs that hold the unreferenced GID netdev pointer.\nS:U - The freed net_device and the code dereferencing it are both inside the same kernel; no VM, IOMMU or sandbox boundary is crossed.\nC:H - rxe_find_route() reads nd_net and ifindex, and rxe_prepare() follows dev_addr, from a freed net_device that can be reclaimed. A forged nd_net sends ip_route_output_key() through attacker-shaped netns and fib structures.\nI:H - Route lookup through a forged netns, and dst refcounting on structures it reaches, gives writes through attacker-controlled pointers; the stale device is also passed as indev to netfilter POST_ROUTING hooks. This is a net_device use-after-free that can be exploited.\nA:H - Dereferencing the freed net_device's nd_net/dev_addr pointers in the rxe_wq kworker oopses the kernel when the memory is poisoned or reused."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/sw/rxe/rxe_loc.h",
                        "drivers/infiniband/sw/rxe/rxe_net.c",
                        "drivers/infiniband/sw/rxe/rxe_req.c",
                        "drivers/infiniband/sw/rxe/rxe_resp.c"
                    ],
                    "versions": [
                        {
                            "version": "43c9fc509fa59d602f9c303d02b33db015022881",
                            "lessThan": "e04100461ab819f13350de4c51c324f1c2223f0c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "43c9fc509fa59d602f9c303d02b33db015022881",
                            "lessThan": "acf8eb1a285c4ee840fdd4c77d573c791e96402b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "43c9fc509fa59d602f9c303d02b33db015022881",
                            "lessThan": "3e582711768f88c296b06624a319b18dc26f450b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "43c9fc509fa59d602f9c303d02b33db015022881",
                            "lessThan": "357bb10d3fdd35c7c8023796e5d96197b19b2cbf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "43c9fc509fa59d602f9c303d02b33db015022881",
                            "lessThan": "19881618ffa454c63e6b6bf34acd7cac28c695dc",
                            "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/sw/rxe/rxe_loc.h",
                        "drivers/infiniband/sw/rxe/rxe_net.c",
                        "drivers/infiniband/sw/rxe/rxe_req.c",
                        "drivers/infiniband/sw/rxe/rxe_resp.c"
                    ],
                    "versions": [
                        {
                            "version": "4.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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.17",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/e04100461ab819f13350de4c51c324f1c2223f0c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/acf8eb1a285c4ee840fdd4c77d573c791e96402b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3e582711768f88c296b06624a319b18dc26f450b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/357bb10d3fdd35c7c8023796e5d96197b19b2cbf"
                },
                {
                    "url": "https://git.kernel.org/stable/c/19881618ffa454c63e6b6bf34acd7cac28c695dc"
                }
            ],
            "title": "RDMA/rxe: Hold netdev reference for transmit skbs",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}