Linux
ptp: ocp: Fix board ID over-read
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < 72ef3ce80078199bfad32f98d055f44ba7cd0c3d
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < 3d965811be78473654e6e8cc8e4fb7b6b87aa6c1
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < f92558bbe78d6284fedd053900f82a70f0aa8707
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < 5fd91dd4a143479b0575fb1f202ec1c501e71fd5
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < f8d7e5751267637190eff887c971d5b468106213
- >= 0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4, < 6b69f2ef10cdb018c0b127a7cab88e590bbddba4
Fixed in 72ef3ce80078199bfad32f98d055f44ba7cd0c3d, 3d965811be78473654e6e8cc8e4fb7b6b87aa6c1, f92558bbe78d6284fedd053900f82a70f0aa8707, 5fd91dd4a143479b0575fb1f202ec1c501e71fd5, f8d7e5751267637190eff887c971d5b468106213, 6b69f2ef10cdb018c0b127a7cab88e590bbddba4
- 5.18
Fixed in 0, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to 72ef3ce80078199bfad32f98d055f44ba7cd0c3d or 3d965811be78473654e6e8cc8e4fb7b6b87aa6c1 or f92558bbe78d6284fedd053900f82a70f0aa8707 or 5fd91dd4a143479b0575fb1f202ec1c501e71fd5 or f8d7e5751267637190eff887c971d5b468106213 or 6b69f2ef10cdb018c0b127a7cab88e590bbddba4 or later.
Upgrade Linux to 0 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.