CVE-2026-9771
Last modified
CVE-2026-9771 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. The flash_copy() system call is verified by z_vrfy_flash_copy() in drivers/flash/flash_util.c. On builds with CONFIG_USERSPACE enabled, this handler is the kernel-side trust boundary for a user-mode caller. EPSS estimates a 0.11% chance of exploitation in the next 30 days.
Description
The flash_copy() system call is verified by z_vrfy_flash_copy() in drivers/flash/flash_util.c. On builds with CONFIG_USERSPACE enabled, this handler is the kernel-side trust boundary for a user-mode caller. Prior to the fix it validated only the output buffer (K_SYSCALL_MEMORY_WRITE) and passed the two struct device * arguments, src_dev and dst_dev, directly into the implementation without any object validation — unlike every sibling flash syscall, which guards its device pointer with K_SYSCALL_DRIVER_FLASH. A user-mode thread fully controls the values of src_dev/dst_dev and the contents of its own address space. The implementation z_impl_flash_copy() dereferences these pointers and calls through their driver-API function tables (e.g. api->get_parameters(dst_dev), flash_read(src_dev, ...), flash_write(dst_dev, ...)). By supplying a pointer to a forged struct device whose api table contains attacker-chosen function pointers, an unprivileged thread can cause the kernel to call arbitrary code in supervisor mode; passing any arbitrary or invalid address otherwise yields a kernel crash or out-of-bounds read. The result is a local privilege escalation out of the userspace sandbox (with kernel denial-of-service and information disclosure as lesser outcomes). The fix adds K_SYSCALL_DRIVER_FLASH(src_dev, read) and K_SYSCALL_DRIVER_FLASH(dst_dev, write) to z_vrfy_flash_copy(), which verify each device is a registered flash-driver kernel object the calling thread is permitted to use before any dereference, closing the path completely.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.0.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-9771?
How severe is CVE-2026-9771?
How do I fix CVE-2026-9771?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- 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-97650A vulnerability has been found in ningzichun student-managem…4.3
- CVE-2026-9766The Empik for Woocommerce plugin for WordPress is vulnerable…4.3
- CVE-2026-9767The The School Management – Education & Learning ERP plugin …6.5
- CVE-2026-9768Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-9769justhtml through 1.9.1 (fixed in 1.10.0) is vulnerable to un…7.5
- CVE-2026-9770Kasa EC71 v4 and EC70 v4 firmware contains a static cryptogr…5.3
- CVE-2026-9772Unraid Web Server FileUpload Command Injection Remote Code E…8.8
- CVE-2026-97721A weakness has been identified in Sanluan PublicCMS up to 6.…2.7
- CVE-2026-97723madpsy ka9q_ubersdr before 0.1.58 has a stored cross-site sc…5.4
- CVE-2026-97724A prototype pollution vulnerability in Software Mansion Reac…4.3
- CVE-2026-9773Unraid Web Server ToggleState Command Injection Remote Code …8.8
- CVE-2026-97730In Netgate pfSense Plus before 26.07 and pfSense CE before 2…8.5
Are you affected by CVE-2026-9771?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
