CVE-2025-37740 jfs: add sanity check for agwidth in dbMount

Medium 5.5 Published Updated

A missing sanity check in the Linux kernel JFS filesystem allows a local attacker to cause a divide-by-zero error, resulting in a system crash.

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-37740?

CVE-2025-37740 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 1 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:

jfs: add sanity check for agwidth in dbMount

The width in dmapctl of the AG is zero, it trigger a divide error when calculating the control page level in dbAllocAG.

To avoid this issue, add a check for agwidth in dbAllocAG.

Weakness: CWE-369

Which versions are affected by CVE-2025-37740?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37740?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-37740 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37740, DEBIAN-CVE-2025-37740, GHSA-c7x8-xx5v-964j, ROOT-OS-DEBIAN-12-CVE-2025-37740, ROOT-OS-UBUNTU-2204-CVE-2025-37740, ROOT-OS-UBUNTU-2404-CVE-2025-37740 and 1 more.

Is CVE-2025-37740 in your software?

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

Check your SBOMs for free