# CVE-2026-7007: Division by zero in Zephyr ext2 superblock parsing allows DoS via crafted filesystem image

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.6
- **CVSS:** 4.6 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2026-07-24T13:48:24.831Z
- **Modified:** 2026-11-04T05:19:03.217Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.5.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## Description

The Zephyr ext2 file system validates the on-disk superblock in ext2\_verify\_disk\_superblock() (subsys/fs/ext2/ext2\_impl.c) before completing a mount. The validator checked the magic number, block size, revision and feature flags, but did not verify that the on-disk fields s\_blocks\_per\_group and s\_inodes\_per\_group are non-zero. Both fields are read directly from the image and are later used as divisors during mount-time initialization.

During mount, get\_ngroups() divides and modulos s\_blocks\_count by s\_blocks\_per\_group (reached via ext2\_fetch\_block\_group() from ext2\_init\_fs()), and get\_itable\_entry() divides (ino - 1) by s\_inodes\_per\_group when fetching the root inode (both in subsys/fs/ext2/ext2\_diskops.c). A superblock with either field set to zero therefore causes an integer division by zero during the mount sequence.

An attacker who can present a crafted ext2 image to a device that mounts ext2 — removable media such as an SD card or a USB mass-storage device — can trigger this. On ARMv7-M / ARMv8-M-mainline Cortex-M targets, divide-by-zero trapping is enabled (SCB\_CCR\_DIV\_0\_TRP), so the division raises a UsageFault that Zephyr treats as a fatal error, producing a denial of service. The impact is limited to availability; the malformed value is consumed only as a divisor.

The fix rejects a zero s\_blocks\_per\_group or s\_inodes\_per\_group in the superblock validator, returning -EINVAL so the mount fails before any block-group or inode I/O occurs.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.5.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-7007. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-7007.md
Affected: zephyrproject zephyr >= 3.5.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-7007 being exploited?

There is no confirmed exploitation: CVE-2026-7007 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-7007?

Medium: CVSS 4.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-7007?

zephyrproject zephyr \>= 3.5.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

### Is there a fix for CVE-2026-7007?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2. Upgrade zephyr to 4.4.2 or later.

### How do I check if I'm affected by CVE-2026-7007?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wrf2-79mm-cvw5>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/babc0900ed40e6c023ccc26aa1a321f9388b66af>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-7007>

HTML: <https://flawdb.com/CVE-2026-7007> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-7007>
