ptp: ocp: Fix board ID over-read
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 · < 6b69f2ef10cdb018c0b127a7cab88e590bbddba4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ptp: ocp: Fix board ID over-read
The EEPROM board ID is a fixed 13-byte field and is not guaranteed to contain a NUL terminator. Passing it directly to devlink_info_version_fixed_put() treats it as a C string and may read beyond the field.
Format at most OCP_BOARD_ID_LEN bytes into the existing local buffer before reporting the ID. Use a precision limit because the snprintf() output size alone does not bound the source string scan.
From the CVE record · Linux
The Linux kernel’s ptp: ocp code treats a fixed 13-byte EEPROM board ID as a NUL-terminated string, which may read beyond the field when reporting the ID. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ptp: ocp code should check their versions; affected versions are not specified.