Skip to main content
EPSS 0.2%top 94%

CVE-2026-10682: bounds in zephyrproject zephyr

0
Medium
VulnerabilityCVE-2026-10682cvecve-2026-10682
Published: 07/27/2026 (07/27/2026, 18:30:49 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

The userspace verifier z_vrfy_log_filter_set() for the log_filter_set syscall in subsys/logging/log_mgmt.c performed a signed comparison against the int16_t src_id parameter: src_id < (int16_t)log_src_cnt_get(domain_id). Any negative value for src_id (e.g. -1) trivially satisfied this check and was forwarded into z_impl_log_filter_set, where it propagated to filter_set() and ultimately to get_dynamic_filter(), which uses source_id as an unsigned index into the linker-section array &TYPE_SECTION_START(log_dynamic)[source_id].filters. After implicit conversion through uint32_t, an int16_t -1 becomes 0xFFFFFFFF, indexing log_dynamic far out of bounds and causing the kernel to perform an OOB read and an OOB read-modify-write (LOG_FILTER_SLOT_GET/SET) against memory adjacent to the log_dynamic section. The written value is a constrained 3-bit log level slot within the targeted 32-bit word, but the target address is attacker-chosen (a small negative offset from log_dynamic) and the write occurs in supervisor mode following a syscall from an unprivileged user thread, providing a kernel memory-corruption / privilege-escalation primitive. The defect is reachable on any build with CONFIG_USERSPACE=y and CONFIG_LOG_RUNTIME_FILTERING=y. Present from Zephyr v3.3.0 through v4.4.1. The fix replaces the signed bound check with an unsigned comparison: (uint32_t)src_id < log_src_cnt_get(domain_id), which correctly rejects negative inputs.

CVSS v3.1

Score 6.6medium

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

Affected software

zephyrproject

zephyr

Affected versions
>=3.0.0 <4.5.0
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=3.0.0 <4.5.0

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: 07/30/2026, 01:02:29 UTC

Technical Analysis

The vulnerability exists in the userspace verifier function z_vrfy_log_filter_set() for the log_filter_set syscall in Zephyr's logging management subsystem. The function performs a signed comparison on the int16_t src_id parameter against the log source count, allowing negative values such as -1 to pass the check. This negative value is then implicitly converted to a large unsigned integer (0xFFFFFFFF), causing out-of-bounds indexing into the log_dynamic linker-section array. This results in out-of-bounds read and read-modify-write operations in kernel memory, enabling memory corruption and a privilege escalation primitive from an unprivileged user thread. The defect affects builds with CONFIG_USERSPACE=y and CONFIG_LOG_RUNTIME_FILTERING=y, present from Zephyr v3.3.0 through v4.4.1. The fix replaces the signed comparison with an unsigned comparison to properly reject negative src_id values.

Potential Impact

An attacker controlling the src_id parameter can cause out-of-bounds memory access in kernel space, leading to kernel memory corruption and potential privilege escalation from an unprivileged user thread. The vulnerability impacts confidentiality, integrity, and availability with a CVSS 3.1 score of 6.6 (medium severity).

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix described replaces the signed comparison with an unsigned comparison to reject negative inputs. Until an official patch is available, avoid enabling CONFIG_USERSPACE and CONFIG_LOG_RUNTIME_FILTERING together if possible, or restrict access to the affected syscall. Monitor the Zephyr project advisories for an official fix.

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-02T15:26:19.350Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a67a90c9c2644c7f8a59f12

Added to database: 07/27/2026, 18:53:00 UTC

Last enriched: 07/30/2026, 01:02:29 UTC

Last updated: 09/10/2026, 20:02:43 UTC

Views: 111

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