GHSA-3FC3-MXCH-R9MJ
Vulnerability from github – Published: 2026-11-20 06:32 – Updated: 2026-11-23 09:30In the Linux kernel, the following vulnerability has been resolved:
can: replace ARPHRD_CAN type checks with can_get_ml_priv()
Commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") introduced an explicit way to assign the midlayer private pointer (dev->ml_priv) to named users like ML_PRIV_CAN. A valid pointer returned by can_get_ml_priv() therefore identifies a real CAN device.
The referenced commit only converted the j1939 and proc code to this check, while the other parts of the CAN subsystem still rely on dev->type == ARPHRD_CAN.
The TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware type to ARPHRD_CAN while dev->ml_priv remains NULL. Such a repurposed netdevice passes the ARPHRD_CAN checks.
Commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") already made can_rx_register() reject such devices. But can_rx_unregister() still only checks dev->type and dereferences the NULL ml_priv when it walks the receive lists of the device.
CAN_ISOTP reaches this path: isotp_bind() ignores the return values of can_rx_register() and binds the socket anyway. When the socket is released or the device is unregistered, isotp_release() and isotp_notify() remove the filters that have never been registered and trigger the NULL pointer dereference in can_rx_unregister(). This only requires owning a TUN/TAP device or CAP_NET_ADMIN in an unprivileged user namespace.
Convert the remaining ARPHRD_CAN checks in af_can, bcm, gw, isotp and raw to can_get_ml_priv().
{
"affected": [],
"aliases": [
"CVE-2026-99673"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-20T06:18:01Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: replace ARPHRD_CAN type checks with can_get_ml_priv()\n\nCommit 4e096a18867a (\"net: introduce CAN specific pointer in the struct\nnet_device\") introduced an explicit way to assign the midlayer private\npointer (dev-\u003eml_priv) to named users like ML_PRIV_CAN. A valid pointer\nreturned by can_get_ml_priv() therefore identifies a real CAN device.\n\nThe referenced commit only converted the j1939 and proc code to this\ncheck, while the other parts of the CAN subsystem still rely on\ndev-\u003etype == ARPHRD_CAN.\n\nThe TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware\ntype to ARPHRD_CAN while dev-\u003eml_priv remains NULL. Such a repurposed\nnetdevice passes the ARPHRD_CAN checks.\n\nCommit 8aa59e355949 (\"can: af_can: fix NULL pointer dereference in\ncan_rx_register()\") already made can_rx_register() reject such devices.\nBut can_rx_unregister() still only checks dev-\u003etype and dereferences\nthe NULL ml_priv when it walks the receive lists of the device.\n\nCAN_ISOTP reaches this path: isotp_bind() ignores the return values of\ncan_rx_register() and binds the socket anyway. When the socket is\nreleased or the device is unregistered, isotp_release() and\nisotp_notify() remove the filters that have never been registered and\ntrigger the NULL pointer dereference in can_rx_unregister(). This only\nrequires owning a TUN/TAP device or CAP_NET_ADMIN in an unprivileged\nuser namespace.\n\nConvert the remaining ARPHRD_CAN checks in af_can, bcm, gw, isotp and\nraw to can_get_ml_priv().",
"id": "GHSA-3fc3-mxch-r9mj",
"modified": "2026-11-23T09:30:58Z",
"published": "2026-11-20T06:32:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99673"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/34a6f32b778f8fb3c2b8e3e4bf1db7aefc4d53fc"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7678720471f4e1812c2a2d8ac81a6b8b0518d647"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/962947b69589881167054bae5accc8abfd5aa4b6"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/de3e876a2081b7fe051ffdff6a6703ee77ec2599"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/e7f686bf1dd85c2c128591052268df897d514fd2"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f4910431fdf7b2800f0bec9f161900511f9a8bcd"
}
],
"schema_version": "1.4.0",
"severity": []
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.