CVE-2026-13215
Last modified
CVE-2026-13215 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. The Zephyr ext2 filesystem driver fails to validate the s_log_block_size field of the on-disk superblock when mounting a filesystem. ext2_verify_disk_superblock() in subsys/fs/ext2/ext2_impl.c checks the magic number, revision, inode size and group counts, but never bounds s_log_block_size. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
The Zephyr ext2 filesystem driver fails to validate the s_log_block_size field of the on-disk superblock when mounting a filesystem. ext2_verify_disk_superblock() in subsys/fs/ext2/ext2_impl.c checks the magic number, revision, inode size and group counts, but never bounds s_log_block_size. On a successful verify, subsys/fs/ext2/ext2_ops.c computes fs->block_size = 1024 << superblock.s_log_block_size from this attacker-controlled uint32_t, so a crafted value either overflows the shift (undefined behaviour) or yields a block size far larger than CONFIG_EXT2_MAX_BLOCK_SIZE. That block size is then passed to k_mem_slab_init() by ext2_init_blocks_slab() to carve CONFIG_EXT2_MAX_BLOCK_COUNT blocks out of the fixed static buffer __ext2_block_memory_buffer, whose size is CONFIG_EXT2_MAX_BLOCK_COUNT * CONFIG_EXT2_MAX_BLOCK_SIZE. k_mem_slab_init() does not verify that the requested blocks fit the buffer, and the ext2 wrapper discards its return value, so the slab is laid out past the end of the static buffer. The mount immediately reads block-group, bitmap and inode blocks of fs->block_size bytes each into these slab blocks, producing an out-of-bounds write into adjacent static memory on the first block read. The entire path is gated only by data read from the mounted image, making this reachable by any attacker who can present a crafted ext2 image to a device that mounts it (for example a removable SD card or storage medium). Because the ext2 driver runs in kernel mode, supplying image bytes yields a supervisor-mode memory-corruption primitive, with impact ranging from denial of service to potential code execution. The fix rejects s_log_block_size values that overflow the shift (greater than 11) or that produce a block size exceeding CONFIG_EXT2_MAX_BLOCK_SIZE, so the block slab can no longer be initialized larger than its backing buffer.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.5.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-13215?
How severe is CVE-2026-13215?
How do I fix CVE-2026-13215?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-1321The Membership Plugin – Restrict Content plugin for WordPres…8.1
- CVE-2026-13210GitLab has remediated an issue in GitLab CE/EE affecting all…7.7
- CVE-2026-13211The genucenter web interface before version 8.0p11 unnecessa…4.3
- CVE-2026-13212The Zephyr virtio driver does not validate the descriptor-ch…8.8
- CVE-2026-13213The Hearing Access Service (HAS) GATT server in subsys/bluet…5.3
- CVE-2026-13214The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp_j.c contains…9.8
- CVE-2026-13216The virtio PCI driver (drivers/virtio/virtio_pci.c) parses a…6.1
- CVE-2026-13217The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp.c reconstruc…5.9
- CVE-2026-13218A flaw was found in KubeVirt's virt-handler network cache ha…4.2
- CVE-2026-1322GitLab has remediated an issue in GitLab CE/EE affecting all…8.1
- CVE-2026-13221Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-R…9.1
- CVE-2026-13222Our payment integration with Oppwa-based payment methods did…6.3
Are you affected by CVE-2026-13215?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
