{"schema_version":"1.9.0","id":"CVE-2025-38054","published":"2025-06-18T09:33:34.686Z","modified":"2026-08-12T03:51:24.365273630Z","summary":"ptp: ocp: Limit signal/freq counts in summary output functions","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: ocp: Limit signal/freq counts in summary output functions\n\nThe debugfs summary output could access uninitialized elements in\nthe freq_in[] and signal_out[] arrays, causing NULL pointer\ndereferences and triggering a kernel Oops (page_fault_oops).\nThis patch adds u8 fields (nr_freq_in, nr_signal_out) to track the\nnumber of initialized elements, with a maximum of 4 per array.\nThe summary output functions are updated to respect these limits,\npreventing out-of-bounds access and ensuring safe array handling.\n\nWiden the label variables because the change confuses GCC about\nmax length of the strings.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9"},{"fixed":"0b7d3e782027ac3b6fec56159e8e348042000aef"},{"fixed":"fcad74f894ac89790084cc2e1ec61b08220941d1"},{"fixed":"c9e455581e2ba87ee38c126e8dc49a424b9df0cf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38054.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.12.31"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38054.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0b7d3e782027ac3b6fec56159e8e348042000aef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9e455581e2ba87ee38c126e8dc49a424b9df0cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fcad74f894ac89790084cc2e1ec61b08220941d1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38054.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38054"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38054.json"}}