All reports
Unknown

kernel: can: isotp: check CAN address family in isotp_bind()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2023-54105

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-19

Description

In the Linux kernel, the following vulnerability has been resolved: can: isotp: check CAN address family in isotp_bind() Add missing check to block non-AF_CAN binds. Syzbot created some code which matched the right sockaddr struct size but used AF_XDP (0x2C) instead of AF_CAN (0x1D) in the address family field: bind$xdp(r2, &(0x7f0000000540)={0x2c, 0x0, r4, 0x0, r2}, 0x10) ^^^^ This has no funtional impact but the userspace should be notified about the wrong address family field content.

A missing input validation was found in the Linux kernel's CAN ISO-TP protocol implementation. The isotp_bind() function does not verify that the address family in the sockaddr structure is AF_CAN. This allows bind calls with incorrect address families (such as AF_XDP) to succeed without proper error notification to userspace.