> CVE-2026-9771 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-08-17 17:16
MODIFIED
2026-08-17 17:16
CVSS_SCORE V3
8.8
EPSS (Prob. Exploit)
0.14%
Top 96.8%
DATA SOURCES:
NVD đź”— 2026-08-17 CWE MITRE đź”— 2026-09-01 FIRST EPSS đź”— 2026-10-18 GITHUB đź”— 2026-10-08 OSV đź”— 2026-10-26

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EXPLOITABILITY
2.0
IMPACT
6.0

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-822 CWE-862

> CWE DETAILED DESCRIPTIONS

CWE-822: Untrusted Pointer Dereference - The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer. | CWE-862: Missing Authorization - The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

> GITHUB SECURITY ADVISORY

GHSA-gfhx-hw2g-v5hg LOW

Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies

AFFECTED PACKAGES:
NPM / serialize-javascript
>= 7.1.1, < 7.1.2
Fixed in: 7.1.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Missing device-pointer validation in flash_copy() syscall allows userspace privilege escalation

AFFECTED PACKAGES:
Unknown / Unknown
20 versions affected
ALIASES:
GHSA-68cj-3hg4-5vpm

> HISTORIQUE DES MODIFICATIONS

Première apparition
17/08/2026 17:16
Source: NVD
📊 ENRICHISSEMENT 01/09/2026 06:02
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-822: Untrusted Pointer Dereference - The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer. | CWE-862: Missing Authorizatio...
Total des modifications: 1 Dernière mise à jour: 1 month ago

> REFERENCES

https://github.com/zephyrproject-rtos/zephyr/commit/1b1ecdc438092cdd469319a0d51c...
https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-68cj-3hg4-...
« BACK_TO_HOME