Skip to main content
EPSS 0.2%top 93%

CVE-2026-13215: bounds in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-13215cvecve-2026-13215
Published: 08/25/2026 (08/25/2026, 04:37:21 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

CVE-2026-13215 is a vulnerability in the Zephyr ext2 filesystem driver where the s_log_block_size field from the on-disk superblock is not properly validated during filesystem mount. This allows an attacker to supply a crafted ext2 image with a manipulated s_log_block_size value that can cause an out-of-bounds write in kernel memory. The flaw arises because the driver calculates a block size based on this unchecked field and uses it to initialize memory slabs without verifying buffer boundaries. This can lead to memory corruption with impacts ranging from denial of service to potential code execution in kernel mode.

CVSS v3.1

Score 6.8medium

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

zephyrproject

zephyr

Affected versions
>=3.5.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=3.5.0 <4.4.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 20:32:31 UTC

Technical Analysis

The Zephyr ext2 filesystem driver fails to validate the s_log_block_size field in the on-disk superblock during mount. The function ext2_verify_disk_superblock() checks several fields but does not bound s_log_block_size. The driver calculates fs->block_size = 1024 << s_log_block_size, which can overflow or produce a block size larger than CONFIG_EXT2_MAX_BLOCK_SIZE. This block size is used to initialize memory slabs via k_mem_slab_init() without verifying that the requested size fits the backing buffer. Consequently, the slab memory layout can overflow the static buffer, causing out-of-bounds writes when reading filesystem blocks. Because the ext2 driver operates in kernel mode, this memory corruption can be exploited by any attacker able to present a crafted ext2 image to a device that mounts it (e.g., removable storage). The fix involves rejecting s_log_block_size values that cause overflow or exceed the maximum allowed block size, preventing slab initialization beyond the buffer size.

Potential Impact

An attacker who can supply a crafted ext2 filesystem image to a device running the vulnerable Zephyr ext2 driver can trigger out-of-bounds writes in kernel memory. This memory corruption occurs during filesystem mount and can lead to denial of service or potentially arbitrary code execution with kernel privileges. The vulnerability is exploitable without privileges and requires only presenting a malicious filesystem image to the system.

Mitigation Recommendations

A fix is available that rejects s_log_block_size values greater than 11 or that produce a block size exceeding CONFIG_EXT2_MAX_BLOCK_SIZE. This prevents initializing memory slabs larger than their backing buffer and eliminates the out-of-bounds write. Users should upgrade to Zephyr version 4.4.2 or later where this issue is fixed. Until then, avoid mounting untrusted ext2 filesystem images.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-06-24T15:29:24.406Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a8d1f97acd9273b49af8fcd

Added to database: 08/25/2026, 04:52:39 UTC

Last enriched: 09/10/2026, 20:32:31 UTC

Last updated: 10/09/2026, 06:48:15 UTC

Views: 68

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses