{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40060","id":"CVE-2025-40060","title":"coresight: trbe: Return NULL pointer for allocation failures","description":"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","descriptionLong":"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.","published":"2025-10-28T11:48:32.775Z","updated":"2026-10-28T02:31:10.061071319Z","reserved":"2025-04-16T07:20:57.158Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"cef047e0a55cb07906fcaae99170f19a9c0bb6c2","status":"affected","versionType":"git"},{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"fe53a726d5edf864e80b490780cc135fc1adece9","status":"affected","versionType":"git"},{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"9768536f82600a05ce901e31ccfabd92c027ff71","status":"affected","versionType":"git"},{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"296da78494633e1ab5e2e74173a9c8683b04aa6b","status":"affected","versionType":"git"},{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"f505a165f1c7cd37b4cb6952042a5984693a4067","status":"affected","versionType":"git"},{"version":"3fbf7f011f2426dac8c982f1d2ef469a7959a524","lessThan":"8a55c161f7f9c1aa1c70611b39830d51c83ef36d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","lessThan":"5.13","status":"unaffected","versionType":"semver"},{"version":"5.15.195","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.156","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.112","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.53","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/cef047e0a55cb07906fcaae99170f19a9c0bb6c2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/fe53a726d5edf864e80b490780cc135fc1adece9","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9768536f82600a05ce901e31ccfabd92c027ff71","tags":["web"]},{"url":"https://git.kernel.org/stable/c/296da78494633e1ab5e2e74173a9c8683b04aa6b","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f505a165f1c7cd37b4cb6952042a5984693a4067","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8a55c161f7f9c1aa1c70611b39830d51c83ef36d","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40060.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40060","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0022,"epssPercentile":0.12644,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40060","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40060","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40060","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-40060","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}