7.1high
ptp: ocp: Fix board ID over-read
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before 72ef3ce80078199bfad32f98d055f44ba7cd0c3d, from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before 3d965811be78473654e6e8cc8e4fb7b6b87aa6c1, from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before f92558bbe78d6284fedd053900f82a70f0aa8707, from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before 5fd91dd4a143479b0575fb1f202ec1c501e71fd5, from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before f8d7e5751267637190eff887c971d5b468106213, from 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4 before 6b69f2ef10cdb018c0b127a7cab88e590bbddba4, 5.18 Not affected: before 5.18, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ptp: ocp: Corrección de lectura excesiva del ID de la placa El ID de la placa EEPROM es un campo fijo de 13 bytes y no se garantiza que contenga un terminador NUL. Pasarlo directamente a devlink_info_version_fixed_put() lo trata como una cadena C y puede leer más allá del campo. Formatear como máximo OCP_BOARD_ID_LEN bytes en el búfer local existente antes de informar el ID. Usar un límite de precisión porque el tamaño de salida de snprintf() por sí solo no limita el escaneo de la cadena de origen.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74603 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-74603 changed 2026-10-14 | Public domain |