CVE-2025-37817 mcb: fix a double free bug in chameleon_parse_gdd()

High 7.8 Published Updated

A double free vulnerability in the Linux kernel's mcb driver allows local attackers to potentially execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37817?

CVE-2025-37817 is a high-severity use after free vulnerability in Debian Debian Linux, published on 8 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

mcb: fix a double free bug in chameleon_parse_gdd()

In chameleon_parse_gdd(), if mcb_device_register() fails, 'mdev' would be released in mcb_device_register() via put_device(). Thus, goto 'err' label and free 'mdev' again causes a double free. Just return if mcb_device_register() fails.

Weakness: CWE-415

Which versions are affected by CVE-2025-37817?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37817?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-37817 being exploited?

There is no known exploitation of CVE-2025-37817 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37817, DEBIAN-CVE-2025-37817, GHSA-j5r6-fgq5-9wcx, ROOT-OS-DEBIAN-12-CVE-2025-37817, ROOT-OS-UBUNTU-2204-CVE-2025-37817, ROOT-OS-UBUNTU-2404-CVE-2025-37817 and 1 more.

Is CVE-2025-37817 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free