{"id":"CVE-2026-99673","aliases":[],"title":"can: replace ARPHRD_CAN type checks with can_get_ml_priv()","originalDescription":"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->ml_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->type == ARPHRD_CAN.\n\nThe TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware\ntype to ARPHRD_CAN while dev->ml_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->type 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().","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00211,"percentile":0.11955},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.10.28, <5.10.275","fixed":"5.10.275"},{"ecosystem":"Linux","name":"Kernel","range":">=5.10.28, <5.11","fixed":"5.11"},{"ecosystem":"Linux","name":"Kernel","range":">=5.11.12, <5.12","fixed":"5.12"},{"ecosystem":"Linux","name":"Kernel","range":">=5.12.0, <5.15.226","fixed":"5.15.226"},{"ecosystem":"Linux","name":"Kernel","range":">=5.12.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=5.16.0, <6.1.193","fixed":"6.1.193"},{"ecosystem":"Linux","name":"Kernel","range":">=5.4.110, <5.5","fixed":"5.5"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"Linux","name":"Kernel","range":">=6.2.0, <6.6.163","fixed":"6.6.163"},{"ecosystem":"Linux","name":"Kernel","range":">=6.7.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"vendor","name":"Linux","range":">=1a5751d58b14195f763b8c1d9ef33fb8a93e95e7, <e7f686bf1dd85c2c128591052268df897d514fd2","fixed":"e7f686bf1dd85c2c128591052268df897d514fd2"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19","fixed":"27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <34a6f32b778f8fb3c2b8e3e4bf1db7aefc4d53fc","fixed":"34a6f32b778f8fb3c2b8e3e4bf1db7aefc4d53fc"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <7678720471f4e1812c2a2d8ac81a6b8b0518d647","fixed":"7678720471f4e1812c2a2d8ac81a6b8b0518d647"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <962947b69589881167054bae5accc8abfd5aa4b6","fixed":"962947b69589881167054bae5accc8abfd5aa4b6"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b","fixed":"c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <de3e876a2081b7fe051ffdff6a6703ee77ec2599","fixed":"de3e876a2081b7fe051ffdff6a6703ee77ec2599"},{"ecosystem":"vendor","name":"Linux","range":">=4e096a18867a5a989b510f6999d9c6b6622e8f7b, <f4910431fdf7b2800f0bec9f161900511f9a8bcd","fixed":"f4910431fdf7b2800f0bec9f161900511f9a8bcd"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.28, <5.10.275","fixed":"5.10.275"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.28, <5.11","fixed":"5.11"},{"ecosystem":"vendor","name":"Linux","range":">=5.11.12, <5.12","fixed":"5.12"},{"ecosystem":"vendor","name":"Linux","range":">=5.4.110, <5.5","fixed":"5.5"}],"references":[{"url":"https://git.kernel.org/stable/c/c693cbfbc2ad5ab159c671c58f285aa3d4d8a98b","type":"other"},{"url":"https://git.kernel.org/stable/c/f4910431fdf7b2800f0bec9f161900511f9a8bcd","type":"other"},{"url":"https://git.kernel.org/stable/c/27edc672a80ae9d5e7e8aa0cc8f5e3ed2b5dab19","type":"other"},{"url":"https://git.kernel.org/stable/c/962947b69589881167054bae5accc8abfd5aa4b6","type":"other"},{"url":"https://git.kernel.org/stable/c/e7f686bf1dd85c2c128591052268df897d514fd2","type":"other"},{"url":"https://git.kernel.org/stable/c/7678720471f4e1812c2a2d8ac81a6b8b0518d647","type":"other"},{"url":"https://git.kernel.org/stable/c/34a6f32b778f8fb3c2b8e3e4bf1db7aefc4d53fc","type":"other"},{"url":"https://git.kernel.org/stable/c/de3e876a2081b7fe051ffdff6a6703ee77ec2599","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99673.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99673","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.525Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99673","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.095Z"},{"name":"osv","at":"2026-11-23T10:59:15.346Z","url":"https://osv.dev/vulnerability/CVE-2026-99673","license":"CC-BY 4.0","firstSeenAt":"2026-11-23T10:26:22.725Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:58.050Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99673","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:14.495Z"}],"firstSeenAt":"2026-11-20T06:28:14.495Z","publishedAt":"2026-11-20T05:50:21.912Z","modifiedAt":"2026-11-23T10:02:08.332Z"}