{"id":"CVE-2025-38054","published":"2025-06-18T09:33:34Z","modified":"2026-05-11T21:20:22Z","title":"ptp: ocp: Limit signal/freq counts in summary output functions","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00275,"percentile":0.12653,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0b7d3e782027ac3b6fec56159e8e348042000aef","tags":[]},{"url":"https://git.kernel.org/stable/c/fcad74f894ac89790084cc2e1ec61b08220941d1","tags":[]},{"url":"https://git.kernel.org/stable/c/c9e455581e2ba87ee38c126e8dc49a424b9df0cf","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.53}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, < 0b7d3e782027ac3b6fec56159e8e348042000aef",">= ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, < fcad74f894ac89790084cc2e1ec61b08220941d1",">= ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, < c9e455581e2ba87ee38c126e8dc49a424b9df0cf"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"euvd":{"id":"EUVD-2025-18599","exploited":false,"provenance":"source"}}