This page collects all of the vulnerabilities that are discovered and fixed in each release. It will also often have more details than is available in the releases. Some vulnerabilities are deemed to be sensitive, and will not be publicly discussed until there is sufficient time to fix them. Because the release notes are locked to a version, the information here can be updated after the embargo is lifted.
Buffer overflow in getaddrinfo()
.
The shell DNS command can cause unpredictable results due to misuse of stack variables.
Use After Free vulnerability in the Zephyr shell allows a serial or telnet connected user to cause denial of service, and possibly remote code execution.
This has been fixed in release v1.14.0.
The shell implementation does not protect against buffer overruns resulting in unpredictable behavior.
Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in the shell component of Zephyr allows a serial or telnet connected user to cause a crash, possibly with arbitrary code execution.
This has been fixed in release v1.14.0.
The Bluetooth BR/EDR specification up to and including version 5.1 permits sufficiently low encryption key length and does not prevent an attacker from influencing the key length negotiation. This allows practical brute-force attacks (aka "KNOB") that can decrypt traffic and inject arbitrary ciphertext without the victim noticing.
Buffer Overflow vulnerability in USB DFU of zephyr allows a USB connected host to cause possible remote code execution.
This has been fixed in releases v1.14.2, v2.2.0, and v2.1.1.
- Zephyr project bug tracker ZEPSEC-25
- PR23460 fix for 1.14.x
- PR23457 fix for 2.1.x
- PR23190 fix in 2.2.0
Out-of-bounds write in USB Mass Storage with unaligned sizes
Out-of-bounds Write in the USB Mass Storage memoryWrite handler with unaligned Sizes.
See NCC-ZEP-024, NCC-ZEP-025, NCC-ZEP-026
This has been fixed in releases v1.14.2, and v2.2.0.
- Zephyr project bug tracker ZEPSEC-26
- PR23455 fix for v1.14.2
- PR23456 fix for the v2.1 branch
- PR23240 fix for v2.2.0
UpdateHub Module Copies a Variable-Size Hash String Into a Fixed-Size Array
A malformed JSON payload that is received from an UpdateHub server may trigger memory corruption in the Zephyr OS. This could result in a denial of service in the best case, or code execution in the worst case.
See NCC-ZEP-016
This has been fixed in the below pull requests for main, branch from v2.1.0, and branch from v2.2.0.
- Zephyr project bug tracker ZEPSEC-28
- PR24154 fix for main
- PR24065 fix for branch from v2.1.0
- PR24066 fix for branch from v2.2.0
Shell Subsystem Contains a Buffer Overflow Vulnerability In shell_spaces_trim
The shell subsystem contains a buffer overflow, whereby an adversary with physical access to the device is able to cause a memory corruption, resulting in denial of service or possibly code execution within the Zephyr kernel.
See NCC-ZEP-019
This has been fixed in releases v1.14.2, v2.2.0, and in a branch from v2.1.0,
- Zephyr project bug tracker ZEPSEC-29
- PR23646 fix for v1.14.2
- PR23649 fix for branch from v2.1.0
- PR23304 fix for v2.2.0
ARM Platform Uses Signed Integer Comparison When Validating Syscall Numbers
The arm platform-specific code uses a signed integer comparison when validating system call numbers. An attacker who has obtained code execution within a user thread is able to elevate privileges to that of the kernel.
See NCC-ZEP-001
This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0,
- Zephyr project bug tracker ZEPSEC-30
- PR23535 fix for v1.14.2
- PR23498 fix for branch from v2.1.0
- PR23323 fix for v2.2.0
ARC Platform Uses Signed Integer Comparison When Validating Syscall Numbers
An attacker who has obtained code execution within a user thread is able to elevate privileges to that of the kernel.
See NCC-ZEP-001
This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0.
- Zephyr project bug tracker ZEPSEC-35
- PR23500 fix for v1.14.2
- PR23499 fix for branch from v2.1.0
- PR23328 fix for v2.2.0
Multiple Syscalls In GPIO Subsystem Performs No Argument Validation
Multiple syscalls with insufficient argument validation
See NCC-ZEP-006
This has been fixed in releases v1.14.2, and v2.2.0, and in a branch from v2.1.0.
- Zephyr project bug tracker ZEPSEC-32
- PR23733 fix for v1.14.2
- PR23737 fix for branch from v2.1.0
- PR23308 fix for v2.2.0 (gpio patch)
Multiple Syscalls In kscan Subsystem Performs No Argument Validation
Multiple syscalls in the Kscan subsystem perform insufficient argument validation, allowing code executing in userspace to potentially gain elevated privileges.
See NCC-ZEP-006
This has been fixed in a branch from v2.1.0, and release v2.2.0.
- Zephyr project bug tracker ZEPSEC-34
- PR23748 fix for branch from v2.1.0
- PR23308 fix for v2.2.0 (kscan patch)
UpdateHub Module Explicitly Disables TLS Verification
The UpdateHub module disables DTLS peer checking, which allows for a man in the middle attack. This is mitigated by firmware images requiring valid signatures. However, there is no benefit to using DTLS without the peer checking.
See NCC-ZEP-018
This has been fixed in a PR against Zephyr main.
- Zephyr project bug tracker ZEPSEC-36
- PR24954 fix on main (to be fixed in v2.3.0)
- PR24954 fix v2.1.0
- PR24954 fix v2.2.0
UpdateHub Might Dereference An Uninitialized Pointer
In updatehub_probe, right after JSON parsing is complete, objects[1] is accessed from the output structure in two different places. If the JSON contained less than two elements, this access would reference uninitialized stack memory. This could result in a crash, denial of service, or possibly an information leak.
Recommend disabling updatehub until such a time as a fix can be made available.
See NCC-ZEP-030
This has been fixed in a PR against Zephyr main.
- Zephyr project bug tracker ZEPSEC-37
- PR27865 fix on main (to be fixed in v2.4.0)
- PR27865 fix for v2.3.0
- PR27865 fix for v2.2.0
- PR27865 fix for v2.1.0
Error handling invalid packet sequence
Improper handling of the full-buffer case in the Zephyr Bluetooth implementation can result in memory corruption.
This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0.
- Zephyr project bug tracker ZEPSEC-75
- PR23516 fix for v2.3 (split driver)
- PR23517 fix for v2.3 (legacy driver)
- PR23091 fix for branch from v1.14.0
- PR23547 fix for branch from v2.2.0
Packet length decoding error in MQTT
CVE: An off-by-one error in the Zephyr project MQTT packet length decoder can result in memory corruption and possible remote code execution. NCC-ZEP-031
The MQTT packet header length can be 1 to 4 bytes. An off-by-one error in the code can result in this being interpreted as 5 bytes, which can cause an integer overflow, resulting in memory corruption.
This has been fixed in main for v2.3.
Remote Denial of Service in CoAP Option Parsing Due To Integer Overflow
A remote adversary with the ability to send arbitrary CoAP packets to be parsed by Zephyr is able to cause a denial of service.
This has been fixed in main for v2.3.
- Zephyr project bug tracker ZEPSEC-55
- PR24435 fix in main for v2.3
- PR24531 fix for branch from v2.2
- PR24535 fix for branch from v2.1
- PR24530 fix for branch from v1.14
- NCC-ZEP report (NCC-ZEP-032)
Improper Input Frame Validation in ieee802154 Processing
OOB Write after not validating user-supplied length (<= 0xffff) and copying to fixed-size buffer (default: 77 bytes) for HCI_ACL packets in bluetooth HCI over SPI driver.
- Zephyr project bug tracker ZEPSEC-66
- This issue has not been fixed.
Incorrect Error Handling in Bluetooth HCI core
In hci_cmd_done, the buf argument being passed as null causes nullpointer dereference.
Integer Overflow In is_in_region Allows User Thread To Access Kernel Memory
A malicious userspace application can cause a integer overflow and bypass security checks performed by system call handlers. The impact would depend on the underlying system call and can range from denial of service to information leak to memory corruption resulting in code execution within the kernel.
See NCC-ZEP-005
This has been fixed in releases v1.14.2, and v2.2.0.
- Zephyr project bug tracker ZEPSEC-27
- PR23653 fix for v1.14.2
- PR23654 fix for the v2.1 branch
- PR23239 fix for v2.2.0
Zephyr Bluetooth DLE duplicate requests vulnerability
In the Zephyr project Bluetooth subsystem, certain duplicate and back-to-back packets can cause incorrect behavior, resulting in a denial of service.
This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0.
- Zephyr project bug tracker ZEPSEC-78
- PR23707 fix for v2.3 (split driver)
- PR23708 fix for v2.3 (legacy driver)
- PR23091 fix for branch from v1.14.0
- PR23964 fix for v2.2.0
Zephyr Bluetooth unchecked packet data results in denial of service
An unchecked parameter in bluetooth data can result in an assertion failure, or division by zero, resulting in a denial of service attack.
This has been fixed in branches for v1.14.0, v2.2.0, and will be included in v2.3.0.
- Zephyr project bug tracker ZEPSEC-81
- PR23705 fix for v2.3 (split driver)
- PR23706 fix for v2.3 (legacy driver)
- PR23091 fix for branch from v1.14.0
- PR23963 fix for branch from v2.2.0
MQTT buffer overflow on receive buffer
In the Zephyr Project MQTT code, improper bounds checking can result in memory corruption and possibly remote code execution. NCC-ZEP-031
When calculating the packet length, arithmetic overflow can result in accepting a receive buffer larger than the available buffer space, resulting in user data being written beyond this buffer.
This has been fixed in main for v2.3.
Insufficient publish message length validation in MQTT
The Zephyr MQTT parsing code performs insufficient checking of the length field on publish messages, allowing a buffer overflow and potentially remote code execution. NCC-ZEP-031
This has been fixed in main for v2.3.
All threads can access all socket file descriptors
There is no management of permissions to network socket API file descriptors. Any thread running on the system may read/write a socket file descriptor knowing only the numerical value of the file descriptor.
IP-in-IP protocol routes arbitrary traffic by default zephyrproject
FS: Buffer Overflow when enabling Long File Names in FAT_FS and calling fs_stat
Performing fs_stat on a file with a filename longer than 12 characters long will cause a buffer overflow.
Security problem with settings and littlefs
When settings is used in combination with littlefs all security related information can be extracted from the device using MCUmgr and this could be used e.g in bt-mesh to get the device key, network key, app keys from the device.
Malformed SPI in response for eswifi can corrupt kernel memory
Possible read out of bounds in dns read
Remote Denial of Service in LwM2M do_write_op_tlv
In the Zephyr LwM2M implementation, malformed input can result in an infinite loop, resulting in a denial of service attack.
Possible overflow in mempool
- Zephyr offers pre-built 'malloc' wrapper function instead.
- The 'malloc' function is wrapper for the 'sys_mem_pool_alloc' function
- sys_mem_pool_alloc allocates 'size + WB_UP(sizeof(struct sys_mem_pool_block))' in an unsafe manner.
- Asking for very large size values leads to internal integer wrap-around.
- Integer wrap-around leads to successful allocation of very small memory.
- For example: calling malloc(0xffffffff) leads to successful allocation of 7 bytes.
- That leads to heap overflow.
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses
Improper processing of omitted source and destination addresses in ieee802154 frame validation (ieee802154_validate_frame)
This has been fixed in main for v2.5.0
Mismatch between validation and handling of 802154 ACK frames, where ACK frames are considered during validation, but not during actual processing, leading to a type confusion.
Incomplete check of minimum IEEE 802154 fragment size leading to an integer underflow.
Integer Underflow in 6LoWPAN IPHC Header Uncompression
This has been fixed in main for v2.5.0
Assertion reachable with repeated LL_CONNECTION_PARAM_REQ.
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-46h3-hjcq-2jjr
- PR 33272 fix for main
- PR 33369 fix for 2.5
- PR 33759 fix for 1.14.2
BT: Assertion failure on repeated LL_FEATURE_REQ
This has been fixed in main for v2.6.0
Invalid interval in CONNECT_IND leads to Division by Zero
This has been fixed in main for v2.6.0
BT: Invalid channel map in CONNECT_IND results to Deadlock
This has been fixed in main for v2.6.0
L2CAP: Stack based buffer overflow in le_ecred_conn_req()
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-8w87-6rfp-cfrm
- PR 33305 fix for main
- PR 33419 fix for 2.5
- PR 33418 fix for 1.14.2
L2CAP: Information leakage in le_ecred_conn_req()
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-xhg3-gvj6-4rqh
- PR 33305 fix for main
- PR 33419 fix for 2.5
- PR 33418 fix for 1.14.2
Bluetooth: Possible to overwrite an existing bond during keys distribution phase when the identity address of the bond is known
During the distribution of the identity address information we don’t check for an existing bond with the same identity address.This means that a duplicate entry will be created in RAM while the newest entry will overwrite the existing one in persistent storage.
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-j76f-35mc-4h63
- PR 33266 fix for main
- PR 33432 fix for 2.5
- PR 33433 fix for 2.4
- PR 33718 fix for 1.14.2
Truncated L2CAP K-frame causes assertion failure
For example, sending L2CAP K-frame where SDU length field is truncated to only one byte, causes assertion failure in previous releases of Zephyr. This has been fixed in master by commit 0ba9437 but has not yet been backported to older release branches.
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-fx88-6c29-vrp3
- PR 32588 fix for main
- PR 33513 fix for 2.5
- PR 33514 fix for 2.4
Disconnecting L2CAP channel right after invalid ATT request leads freeze
When Central device connects to peripheral and creates L2CAP connection for Enhanced ATT, sending some invalid ATT request and disconnecting immediately causes freeze.
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-7g38-3x9v-v7vp
- PR 35597 fix for main
- PR 36104 fix for 2.5
- PR 36105 fix for 2.4
Zephyr JSON decoder incorrectly decodes array of array
When using JSON_OBJ_DESCR_ARRAY_ARRAY, the subarray is has the token type JSON_TOK_LIST_START, but then assigns to the object part of the union. arr_parse then takes the offset of the array-object (which has nothing todo with the list) treats it as relative to the parent object, and stores the length of the subarray in there.
This has been fixed in main for v2.7.0
HCI data not properly checked leads to memory overflow in the Bluetooth stack
In the process of setting SCAN_RSP through the HCI command, the Zephyr Bluetooth protocol stack did not effectively check the length of the incoming HCI data. Causes memory overflow, and then the data in the memory is overwritten, and may even cause arbitrary code execution.
This has been fixed in main for v2.6.0
- Zephyr project bug tracker GHSA-8q65-5gqf-fmw5
- PR 35935 fix for main
- PR 35984 fix for 2.5
- PR 35985 fix for 2.4
- PR 35985 fix for 1.14
Buffer overflow in Zephyr USB DFU DNLOAD
This has been fixed in main for v2.6.0
Buffer overflow in Zephyr USB device class
This has been fixed in main for v3.0.0
Buffer overflow in the RNDIS USB device class
This has been fixed in main for v3.0.0
Usb bluetooth device ACL read cb buffer overflow
This has been fixed in main for v3.0.0
Possible to retrieve unencrypted firmware image
This has been fixed in main for v3.0.0
Out-of-bound write vulnerability in the Bluetooth Mesh core stack can be triggered during provisioning
This has been fixed in main for v3.1.0
- Zephyr project bug tracker GHSA-p449-9hv9-pj38
- PR 45136 fix for main
- PR 45188 fix for v3.0.0
- PR 45187 fix for v2.7.0
Out-of-bound write vulnerability in the Bluetooth Mesh core stack can be triggered during provisioning
This has been fixed in main for v3.1.0
- Zephyr project bug tracker GHSA-j7v7-w73r-mm5x
- PR 45066 fix for main
- PR 45135 fix for v3.0.0
- PR 45134 fix for v2.7.0
Out-of-Bound Write in tcp_flags
This has been fixed in main for v3.1.0
can: denial-of-service can be triggered by a crafted CAN frame
This has been fixed in main for v3.2.0
- Zephyr project bug tracker GHSA-hx5v-j59q-c3j8
- PR 47903 fix for main
- PR 47957 fix for v3.1.0
- PR 47958 fix for v3.0.0
- PR 47959 fix for v2.7.0
bt: host: Wrong key validation check
This has been fixed in main for v3.2.0
DoS: Invalid Initialization in le_read_buffer_size_complete()
Buffer Overreads in Bluetooth HCI
DoS: Invalid Initialization in le_read_buffer_size_complete()
This has been fixed in main for v3.3.0
net: shell: Improper input validation
This has been fixed in main for v3.3.0
HCI send_sync Dangling Semaphore Reference Re-use
This has been fixed in main for v3.4.0
HCI Connection Creation Dangling State Reference Re-use
This has been fixed in main for v3.4.0
Potential buffer overflow vulnerability in the Zephyr CANbus subsystem.
This has been fixed in main for v3.5.0
Unchecked user input length in the Zephyr WiFi shell module can cause buffer overflows.
This has been fixed in main for v3.5.0
bt: mesh: vulnerability in provisioning protocol implementation on provisionee side
This has been fixed in main for v3.5.0
Buffer overflow vulnerabilities in the Zephyr eS-WiFi driver
This has been fixed in main for v3.5.0
Off-by-one buffer overflow vulnerability in the Zephyr FS subsystem
This has been fixed in main for v3.5.0
- This issue has been determined to be a false positive after further analysis.
Potential buffer overflow vulnerability in the Zephyr IEEE 802.15.4 nRF 15.4 driver.
This has been fixed in main for v3.5.0
Potential buffer overflow vulnerabilities in the Zephyr Bluetooth subsystem
This has been fixed in main for v3.5.0
Two potential buffer overflow vulnerabilities in Zephyr USB code
This has been fixed in main for v3.4.0
bt: hci: DoS and possible RCE
This has been fixed in main for v3.5.0
L2CAP: Possible Stack based buffer overflow in le_ecred_reconf_req()
This has been fixed in main for v3.5.0
Potential buffer overflow vulnerability in the Zephyr STM32 Crypto driver.
This has been fixed in main for v3.5.0
Potential signed to unsigned conversion errors and buffer overflow vulnerabilities in the Zephyr IPM driver
This has been fixed in main for v3.5.0
The SJA1000 CAN controller driver backend automatically attempts to recover from a bus-off event when built with CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y. This results in calling k_sleep() in IRQ context, causing a fatal exception.
This has been fixed in main for v3.5.0
Potential buffer overflow vulnerabilities in the Zephyr Bluetooth subsystem source code when asserts are disabled.
This has been fixed in main for v3.5.0
Out of bounds issue in remove_rx_filter in multiple can drivers.
This has been fixed in main for v3.6.0
- PR 64399 fix for main
- PR 64416 fix for 3.5
- PR 64415 fix for 3.4
- PR 64427 fix for 3.3
- PR 64431 fix for 2.7
Signed to unsigned conversion problem in esp32_ipm_send may lead to buffer overflow
This has been fixed in main for v3.6.0
Potential buffer overflow due unchecked data coming from user input in settings shell.
This has been fixed in main for v3.6.0
Potential buffer overflow vulnerability in Zephyr fuse file system.
This has been fixed in main for v3.6.0
Missing Security Control in Zephyr OS IP Packet Handling
This has been fixed in main for v3.6.0
Bluetooth characteristic LESC security requirement not enforced without additional flags
This has been fixed in main for v3.6.0
Bluetooth: Integer underflow in gatt_find_info_rsp. A malicious Bluetooth LE device can crash Bluetooth LE victim device by sending malformed gatt packet.
This has been fixed in main for v3.7.0
Bluetooth: DoS caused by null pointer dereference.
A malicious Bluetooth LE device can send a specific order of packet sequence to cause a DoS attack on the victim Bluetooth LE device.
This has been fixed in main for v3.7.0
Bluetooth: Missing Check in LL_CONNECTION_UPDATE_IND Packet Leads to Division by Zero
This has been fixed in main for v3.7.0
BT: Encryption procedure host vulnerability
This has been fixed in main for v3.7.0
BT: Unchecked user input in bap_broadcast_assistant
This has been fixed in main for v3.7.0
BT:Classic: Multiple missing buf length checks
This has been fixed in main for v3.7.0
BT: Classic: SDP OOB access in get_att_search_list
This has been fixed in main for v3.7.0
BT: Missing length checks of net_buf in rfcomm_handle_data
This has been fixed in main for v3.7.0
BT: HCI: adv_ext_report Improper discarding in adv_ext_report
This has been fixed in main for v3.7.0
Bluetooth: ASCS Unchecked tailroom of the response buffer
This has been fixed in main for v3.7.0
zephyr: out-of-bound read in utf8_trunc
This has been fixed in main for v3.7.0
Bluetooth: ots: missing buffer length check
This has been fixed in main for v3.7.0
Bluetooth: classic: avdtp: missing buffer length check
This has been fixed in main for v4.0.0
net: lib: http_server: Buffer Under-read
No proper validation of the length of user input in http_server_get_content_type_from_extension could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer.
This has been fixed in main for v4.0.0
arch: riscv: userspace: potential security risk when CONFIG_RISCV_GP=y
A rogue thread can corrupt the gp reg and cause the entire system to hard fault at best, at worst, it can potentially trick the system to access another set of random global symbols.
This has been fixed in main for v4.0.0
Out of bounds read when calling crc16_ansi and strlen in dns_validate_msg
A malicious or malformed DNS packet without a payload can cause an out-of-bounds read, resulting in a crash (denial of service) or an incorrect computation.
This has been fixed in main for v4.1.0
Out of bounds read when unpacking DNS answers
A lack of input validation allows for out of bounds reads caused by malicious or malformed packets.
This has been fixed in main for v4.1.0
Out of bounds read in dns_copy_qname
The function dns_copy_qname in dns_pack.c performs performs a memcpy operation with an untrusted field and does not check if the source buffer is large enough to contain the copied data.
This has been fixed in main for v4.1.0
Under embargo until 2025-06-07