CVE-2023-31085 Denial of service in n/a

Medium 5.5 Published Updated

A divide-by-zero error in the Linux kernel UBI driver allows local attackers to cause a system crash via a specific ioctl call.

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-2023-31085?

CVE-2023-31085 is a medium-severity denial of service vulnerability in Linux kernel, published on 24 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in drivers/mtd/ubi/cdev.c in the Linux kernel 6.2. There is a divide-by-zero error in do_div(sz,mtd->erasesize), used indirectly by ctrl_cdev_ioctl, when mtd->erasesize is 0.

Weakness: CWE-369

Which versions are affected by CVE-2023-31085?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-31085?

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-2023-31085 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-31085, DEBIAN-CVE-2023-31085, GHSA-22jv-7gj6-846j, ROOT-OS-DEBIAN-12-CVE-2023-31085, ROOT-OS-DEBIAN-13-CVE-2023-31085, UBUNTU-CVE-2023-31085.

Is CVE-2023-31085 in your software?

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

Check your SBOMs for free