{"id":"CVE-2026-74603","state":"PUBLISHED","title":"ptp: ocp: Fix board ID over-read","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: ocp: Fix board ID over-read\n\nThe EEPROM board ID is a fixed 13-byte field and is not guaranteed to\ncontain a NUL terminator. Passing it directly to\ndevlink_info_version_fixed_put() treats it as a C string and may read\nbeyond the field.\n\nFormat at most OCP_BOARD_ID_LEN bytes into the existing local buffer\nbefore reporting the ID. Use a precision limit because the snprintf()\noutput size alone does not bound the source string scan.","publishedAt":"2026-08-22T15:31:51.544Z","updatedAt":"2026-08-25T05:40:27.399Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"72ef3ce80078199bfad32f98d055f44ba7cd0c3d","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"3d965811be78473654e6e8cc8e4fb7b6b87aa6c1","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"f92558bbe78d6284fedd053900f82a70f0aa8707","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"5fd91dd4a143479b0575fb1f202ec1c501e71fd5","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"f8d7e5751267637190eff887c971d5b468106213","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"6b69f2ef10cdb018c0b127a7cab88e590bbddba4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_ocp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.152","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.104","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.45","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.9","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_ocp.c"]}],"references":["https://git.kernel.org/stable/c/72ef3ce80078199bfad32f98d055f44ba7cd0c3d","https://git.kernel.org/stable/c/3d965811be78473654e6e8cc8e4fb7b6b87aa6c1","https://git.kernel.org/stable/c/f92558bbe78d6284fedd053900f82a70f0aa8707","https://git.kernel.org/stable/c/5fd91dd4a143479b0575fb1f202ec1c501e71fd5","https://git.kernel.org/stable/c/f8d7e5751267637190eff887c971d5b468106213","https://git.kernel.org/stable/c/6b69f2ef10cdb018c0b127a7cab88e590bbddba4"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74603.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74603","state":"PUBLISHED","datePublished":"2026-08-22T15:31:51.544Z","dateUpdated":"2026-08-25T05:40:27.399Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.919Z"},"containers":{"cna":{"title":"ptp: ocp: Fix board ID over-read","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: ocp: Fix board ID over-read\n\nThe EEPROM board ID is a fixed 13-byte field and is not guaranteed to\ncontain a NUL terminator. Passing it directly to\ndevlink_info_version_fixed_put() treats it as a C string and may read\nbeyond the field.\n\nFormat at most OCP_BOARD_ID_LEN bytes into the existing local buffer\nbefore reporting the ID. Use a precision limit because the snprintf()\noutput size alone does not bound the source string scan."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"72ef3ce80078199bfad32f98d055f44ba7cd0c3d","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"3d965811be78473654e6e8cc8e4fb7b6b87aa6c1","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"f92558bbe78d6284fedd053900f82a70f0aa8707","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"5fd91dd4a143479b0575fb1f202ec1c501e71fd5","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"f8d7e5751267637190eff887c971d5b468106213","versionType":"git"},{"version":"0cfcdd1ebcfe1a9b262f6ad8419580720dc843c4","status":"affected","lessThan":"6b69f2ef10cdb018c0b127a7cab88e590bbddba4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_ocp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.152","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.104","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.45","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.9","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_ocp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/72ef3ce80078199bfad32f98d055f44ba7cd0c3d"},{"url":"https://git.kernel.org/stable/c/3d965811be78473654e6e8cc8e4fb7b6b87aa6c1"},{"url":"https://git.kernel.org/stable/c/f92558bbe78d6284fedd053900f82a70f0aa8707"},{"url":"https://git.kernel.org/stable/c/5fd91dd4a143479b0575fb1f202ec1c501e71fd5"},{"url":"https://git.kernel.org/stable/c/f8d7e5751267637190eff887c971d5b468106213"},{"url":"https://git.kernel.org/stable/c/6b69f2ef10cdb018c0b127a7cab88e590bbddba4"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only through the devlink generic-netlink interface (DEVLINK_CMD_INFO_GET) via a local socket; ptp_ocp is a PCI PTP timecard driver with no network, Bluetooth, or physical-device input path to ptp_ocp_devlink_info_get().\nAC:L - On a system with a probed OCP timecard, issuing devlink info deterministically calls ptp_ocp_devlink_info_get() and passes the 13-byte EEPROM board_id that is not guaranteed to be NUL-terminated, so the over-read is reliably triggered without races or attacker-uncontrollable layout.\nPR:L - DEVLINK_CMD_INFO_GET is registered with only GENL_CMD_CAP_DO/GENL_CMD_CAP_DUMP and no GENL_ADMIN_PERM, and devlink_nl_pre_doit() adds no capability check, so any unprivileged local user with generic netlink access can invoke the vulnerable handler.\nUI:N - Exploitation requires only the attacker issuing a devlink info netlink request; no administrator or other user action is needed beyond the attacker having local access to the host.\nS:U - Kernel memory disclosure and any resulting crash are confined to the same host kernel; the bug does not cross VM, IOMMU, or sandbox security boundaries.\nC:H - Passing the non-NUL-terminated board_id to devlink_info_version_fixed_put() makes devlink_info_version_put() and nla_put_string() use strlen(), reading past the 13-byte field through adjacent ptp_ocp/devlink private memory and returning leaked bytes in the netlink reply to the caller.\nI:N - The defect is purely an out-of-bounds kernel read with no write, heap corruption, or control-flow hijack primitive; only kernel memory is scanned and copied into the netlink response.\nA:H - strlen() on the unterminated board_id can walk through subsequent kmalloc-backed struct fields and potentially past the devlink private allocation, touching unmapped pages and oopsing/panicking the kernel; an unprivileged user can repeat the devlink info query to retrigger it."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-25T05:40:27.399Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.152"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.104"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.45"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.1.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}