Linux
net: qrtr: restrict socket creation to the initial network namespace
In the Linux kernel, the following vulnerability has been resolved: net: qrtr: restrict socket creation to the initial network namespace QRTR keeps its entire port and node state in module-global variables that are not partitioned per network namespace: qrtr_local_nid is a single global node id (always 1) and qrtr_ports is a single global xarray. qrtr_port_lookup() and qrtr_local_enqueue() operate on that global state with no network-namespace check, and qrtr_create() places no restriction on the namespace a socket is created in. As a result an unprivileged process that creates an AF_QIPCRTR socket in a separate network namespace, e.g. via unshare(CLONE_NEWUSER | CLONE_NEWNET), can send QRTR datagrams - including control-plane messages such as QRTR_TYPE_NEW_SERVER - to QRTR sockets owned by another namespace, and vice versa. The receiving socket sees such a message as coming from node id 1, indistinguishable from a legitimate local client, breaking the isolation that network namespaces are expected to provide. QRTR is a transport to global hardware endpoints (the modem and other remote processors) and has no per-namespace semantics; its in-kernel name service already creates its socket in init_net only. Confine the socket family to the initial network namespace, as other non-namespace-aware socket families do (see llc_ui_create() and the ieee802154 socket code).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 7814f6a3415cad38aa8d6dfc573df778260d66aa
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2d22b94a154ccb9755dddfff802fe3e2b1adbab5
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 8d351fe0654a20c9f95a61b05d24ebe6d4be3fbb
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 4b95e1f0d6e6342c427cb341ee18a894b146b789
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < f488116df769bdaf89c93371350e49e12133e70f
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 8150c48fb978e01689f94ed80148f8a7499ae571
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 659b9b4f194bb56b9903cc95e786ef1d438baa7d
- >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 3b536db8fb32da9e9c62f2bb45e2e319331f0426
Fixed in 7814f6a3415cad38aa8d6dfc573df778260d66aa, 2d22b94a154ccb9755dddfff802fe3e2b1adbab5, 8d351fe0654a20c9f95a61b05d24ebe6d4be3fbb, 4b95e1f0d6e6342c427cb341ee18a894b146b789, f488116df769bdaf89c93371350e49e12133e70f, 8150c48fb978e01689f94ed80148f8a7499ae571, 659b9b4f194bb56b9903cc95e786ef1d438baa7d, 3b536db8fb32da9e9c62f2bb45e2e319331f0426
- 4.7
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 7814f6a3415cad38aa8d6dfc573df778260d66aa or 2d22b94a154ccb9755dddfff802fe3e2b1adbab5 or 8d351fe0654a20c9f95a61b05d24ebe6d4be3fbb or 4b95e1f0d6e6342c427cb341ee18a894b146b789 or f488116df769bdaf89c93371350e49e12133e70f or 8150c48fb978e01689f94ed80148f8a7499ae571 or 659b9b4f194bb56b9903cc95e786ef1d438baa7d or 3b536db8fb32da9e9c62f2bb45e2e319331f0426 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.