{"id":"CVE-2025-40060","summary":"coresight: trbe: Return NULL pointer for allocation failures","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: trbe: Return NULL pointer for allocation failures\n\nWhen the TRBE driver fails to allocate a buffer, it currently returns\nthe error code \"-ENOMEM\". However, the caller etm_setup_aux() only\nchecks for a NULL pointer, so it misses the error. As a result, the\ndriver continues and eventually causes a kernel panic.\n\nFix this by returning a NULL pointer from arm_trbe_alloc_buffer() on\nallocation failures. This allows that the callers can properly handle\nthe failure.","modified":"2026-04-16T04:30:50.001769169Z","published":"2025-10-28T11:48:32.775Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21080-1","SUSE-SU-2025:21147-1","SUSE-SU-2025:21180-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2025:20091-1","openSUSE-SU-2026:10301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40060.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/296da78494633e1ab5e2e74173a9c8683b04aa6b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8a55c161f7f9c1aa1c70611b39830d51c83ef36d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9768536f82600a05ce901e31ccfabd92c027ff71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cef047e0a55cb07906fcaae99170f19a9c0bb6c2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f505a165f1c7cd37b4cb6952042a5984693a4067"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe53a726d5edf864e80b490780cc135fc1adece9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40060.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40060"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3fbf7f011f2426dac8c982f1d2ef469a7959a524"},{"fixed":"cef047e0a55cb07906fcaae99170f19a9c0bb6c2"},{"fixed":"fe53a726d5edf864e80b490780cc135fc1adece9"},{"fixed":"9768536f82600a05ce901e31ccfabd92c027ff71"},{"fixed":"296da78494633e1ab5e2e74173a9c8683b04aa6b"},{"fixed":"f505a165f1c7cd37b4cb6952042a5984693a4067"},{"fixed":"8a55c161f7f9c1aa1c70611b39830d51c83ef36d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40060.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.13.0"},{"fixed":"5.15.195"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.156"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40060.json"}}],"schema_version":"1.7.5"}