{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38054","id":"CVE-2025-38054","title":"ptp: ocp: Limit signal/freq counts in summary output functions","description":"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 ini","descriptionLong":"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.","published":"2025-06-18T09:33:34.686Z","updated":"2026-10-28T02:30:50.095763603Z","reserved":"2025-04-16T04:51:23.979Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9","lessThan":"0b7d3e782027ac3b6fec56159e8e348042000aef","status":"affected","versionType":"git"},{"version":"ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9","lessThan":"fcad74f894ac89790084cc2e1ec61b08220941d1","status":"affected","versionType":"git"},{"version":"ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9","lessThan":"c9e455581e2ba87ee38c126e8dc49a424b9df0cf","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","lessThan":"6.9","status":"unaffected","versionType":"semver"},{"version":"6.12.31","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.9","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-908"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0b7d3e782027ac3b6fec56159e8e348042000aef","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fcad74f894ac89790084cc2e1ec61b08220941d1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c9e455581e2ba87ee38c126e8dc49a424b9df0cf","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38054.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38054","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00199,"epssPercentile":0.09939,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38054","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38054","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38054","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38054","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}