CVE-2026-13215: bounds in zephyrproject zephyr
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. This allows an attacker to supply a crafted ext2 image that causes an out-of-bounds write in kernel memory during filesystem mounting. The flaw can lead to memory corruption with impacts ranging from denial of service to potential code execution in kernel mode.
AI Analysis
Technical Summary
The Zephyr ext2 filesystem driver fails to validate the s_log_block_size field of the on-disk superblock when mounting an ext2 filesystem. The ext2_verify_disk_superblock() function checks several fields but does not bound s_log_block_size. The block size is computed as 1024 shifted left by s_log_block_size, which can overflow or produce a block size larger than the configured maximum. This oversized block size is used to initialize a memory slab without verifying it fits the backing buffer, causing the slab to overflow a static buffer. When the filesystem mount reads block data into this slab, it results in an out-of-bounds write to adjacent static memory. Because the ext2 driver runs in kernel mode, this memory corruption can lead to denial of service or code execution. The vulnerability is exploitable by presenting a crafted ext2 image to a device that mounts it, such as a removable storage medium. The fix rejects s_log_block_size values that overflow the shift or produce a block size exceeding the maximum allowed.
Potential Impact
An attacker able to supply a crafted ext2 filesystem image to a device running the vulnerable Zephyr ext2 driver can trigger a kernel-mode memory corruption via an out-of-bounds write. This can result in denial of service or potentially arbitrary code execution with kernel privileges. The vulnerability arises from improper validation of the s_log_block_size field leading to buffer overflow during filesystem mounting.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix rejects invalid s_log_block_size values that cause overflow or exceed the maximum block size, preventing the slab overflow. Until an official fix is available, avoid mounting untrusted ext2 filesystem images on affected Zephyr versions.
CVE-2026-13215: bounds in zephyrproject 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. This allows an attacker to supply a crafted ext2 image that causes an out-of-bounds write in kernel memory during filesystem mounting. The flaw 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
Affected software
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
Technical Analysis
The Zephyr ext2 filesystem driver fails to validate the s_log_block_size field of the on-disk superblock when mounting an ext2 filesystem. The ext2_verify_disk_superblock() function checks several fields but does not bound s_log_block_size. The block size is computed as 1024 shifted left by s_log_block_size, which can overflow or produce a block size larger than the configured maximum. This oversized block size is used to initialize a memory slab without verifying it fits the backing buffer, causing the slab to overflow a static buffer. When the filesystem mount reads block data into this slab, it results in an out-of-bounds write to adjacent static memory. Because the ext2 driver runs in kernel mode, this memory corruption can lead to denial of service or code execution. The vulnerability is exploitable by presenting a crafted ext2 image to a device that mounts it, such as a removable storage medium. The fix rejects s_log_block_size values that overflow the shift or produce a block size exceeding the maximum allowed.
Potential Impact
An attacker able to supply a crafted ext2 filesystem image to a device running the vulnerable Zephyr ext2 driver can trigger a kernel-mode memory corruption via an out-of-bounds write. This can result in denial of service or potentially arbitrary code execution with kernel privileges. The vulnerability arises from improper validation of the s_log_block_size field leading to buffer overflow during filesystem mounting.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix rejects invalid s_log_block_size values that cause overflow or exceed the maximum block size, preventing the slab overflow. Until an official fix is available, avoid mounting untrusted ext2 filesystem images on affected Zephyr versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-24T15:29:24.406Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8d1f97acd9273b49af8fcd
Added to database: 08/25/2026, 04:52:39 UTC
Last enriched: 08/25/2026, 05:07:13 UTC
Last updated: 08/25/2026, 05:30:09 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.