CVE-2025-40059
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40059 is a vulnerability discovered in the Linux kernel's coresight subsystem, specifically related to incorrect handling of return values from devm_kzalloc function. The vulnerability was disclosed on October 28, 2025, affecting various Linux kernel versions (NVD, Debian).

Technical details

The vulnerability stems from improper handling of the return value of devm_kzalloc function in the coresight subsystem. Specifically, the function could return a null pointer, and the code needed to be modified to use '!desc.pdata' to properly handle such cases (Debian).

Impact

The vulnerability affects multiple Linux distributions and versions, with varying levels of impact. Several Ubuntu releases including 25.10 (questing), 25.04 (plucky), and 24.04 LTS (noble) are marked as vulnerable, while older versions like 22.04 LTS (jammy) and 20.04 LTS (focal) are not affected (Ubuntu).

Mitigation and workarounds

Fixed versions have been released for various distributions. Debian has addressed the issue in version 6.17.6-1 for unstable and 6.12.57-1 for trixie. The vulnerability is not present in some older releases like bookworm and bullseye (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • DockerDocker
  • golang-1.19
NoYesDec 02, 2025
CVE-2025-64460HIGH7.5
  • Linux DebianLinux Debian
  • python-django
NoYesDec 02, 2025
CVE-2025-65187MEDIUM6.1
  • Linux DebianLinux Debian
  • civicrm
NoNoDec 02, 2025
CVE-2025-65105MEDIUM4.5
  • Linux DebianLinux Debian
  • github.com/apptainer/apptainer
NoYesDec 02, 2025
CVE-2025-13372MEDIUM4.3
  • Linux DebianLinux Debian
  • py3-django
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management