| CVE |
Vendors |
Products |
Updated |
CVSS v3.1 |
| The Intel SEDI I2C controller driver (drivers/i2c/i2c_sedi.c, used on Intel ISH platforms) waits for each asynchronous transfer with k_sem_take() on a per-controller completion semaphore and a 1 s timeout. When the wait times out, i2c_sedi_api_full_io() aborts the transfer via SEDI_I2C_ABORT_TRANSFER, but if the controller's completion interrupt fires between the timeout expiring and the abort masking interrupts, the callback k_sem_give()s the semaphore and the token is never discarded.
The next transfer on that bus then takes the stale token immediately and returns success (the stale context->err is usually 0) while the controller is still executing it. The HAL interrupt handler (or DMA) keeps copying received bytes into the caller's msgs[i].buf. Since I2C callers typically pass stack buffers, this writes into a stack frame that has already been returned from, and the caller also consumes incomplete data. The desynchronization can persist across later transfers.
Triggering the race requires a transfer to complete just after the 1 s timeout. A device on the I2C bus that controls clock stretching (for example a malicious or tampered peripheral) can steer this timing, and it also supplies the bytes that get written. Exploitation therefore needs physical access to the bus and is timing-dependent. The impact is corruption of kernel or thread stack memory with data the peripheral controls, which can lead to a crash or potentially to code execution. The fix calls k_sem_reset() and clears context->err after the abort, while the transfer mutex is still held. |
| usbh_req_setup() in subsys/usb/host/usbh_ch9.c returns -ETIMEDOUT as soon as a control request times out, even though the transfer is still in flight. usbh_xfer_dequeue() only requests cancellation, and the host controller driver keeps the transfer and its data buffer until it returns it through the completion callback. Callers such as usbh_req_desc_dev() and usbh_req_desc_cfg() free the buffer (net_buf_unref()) right after usbh_req_setup() returns. Separately, a single global semaphore (ch9_req_sync) with no mutual exclusion lets a late or foreign completion wake the wrong waiter. That waiter then returns early and its caller frees a buffer the controller is still filling.
A malicious USB device attached to a Zephyr USB host port can trigger this during enumeration. It NAKs a GET_DESCRIPTOR request until the 5-second timeout expires, then answers with data around the cancellation, or delays its answer to the next request after leaving a stale semaphore signal. The controller driver (for example the MAX3421E max3421e_hrslt_success() path) then writes device-controlled bytes into the freed net_buf and updates its length.
The result is a use-after-free write into the USB host buffer pool with attacker-chosen contents, which can corrupt buffers that have been reallocated to other transfers, plus a leak of transfer objects. Crashes or memory corruption follow. The fix serializes usbh_req_setup() with a mutex, resets the semaphore before each request, and waits for the driver to return a cancelled transfer before freeing it. Only builds with the experimental CONFIG_USB_HOST_STACK are affected. |
| ethernet_send() in subsys/net/l2/ethernet/ethernet.c dropped the caller's reference on an IPv4 packet whenever net_arp_prepare() returned NET_ARP_PKT_REPLACED. That return value is also used when ARP could not queue the packet because every ARP cache entry is already pending. In that case ARP holds no reference of its own, so the original packet was freed before the replacing ARP request was transmitted.
If transmitting the ARP request then failed (a driver send error or an ethernet_fill_header() failure), the error path called net_pkt_ref() on the freed packet. net_if_tx() then called net_pkt_unref() on it again. If the freed net_pkt slab slot was reallocated in between, the stray unref releases a reference owned by an unrelated packet, which is freed while still in use.
An attacker on the local link can drive the ARP cache into the all-pending state. CONFIG_NET_ARP_TABLE_SIZE defaults to 2, so it is enough to elicit replies to a few spoofed, non-responding on-subnet addresses. Reaching the memory corruption also needs a transmit failure the attacker does not directly control and a narrow slab-reuse race. The practical impact is corruption or a crash of the network stack (denial of service). |
| Use after free in Winsock allows an authorized attacker to elevate privileges locally. |
| In ProcessWriteQueue of client.cc, there is a possible use after free due to a callback that continues to use its object after the object is destroyed during connection shutdown. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In LogicalLink::SignalError of logical_link.cc, there is a possible use after free due to an error callback that can synchronously destroy the link while its channels are still being iterated. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In NotifyCachedPeers of low_energy_scanner.cc, there is a possible use after free due to a scan result cache being cleared while it is being iterated. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In HandleEndTransaction of bearer.cc, there is a possible use after free due to a missing check that the object still exists after a security upgrade callback completes synchronously. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In MediaFocusFidlImpl of media_focus_fidl_impl.cc, there is a possible use after free due to a race condition. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In EnhancedRetransmissionModeRxEngine::ProcessPdu of enhanced_retransmission_mode_rx_engine.cc, there is a possible use after free due to a connection failure callback that synchronously destroys the channel and its engines while a received frame is still being processed. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In ServerSessionBroker of server_session_broker.cc, there is a possible use after free due to a race condition. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In ResolvePendingNotifyRequests of remote_characteristic.cc, there is a possible use after free due to a status callback that can destroy the object while its pending request queue is still being iterated. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In LogicalLink::SignalError of logical_link.cc, there is a possible use after free due to the object being destroyed by a callback while it is still iterating over its channels. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| A flaw was found in gpgme. When processing crafted input, an early return following memory reallocation can leave internal buffer pointers referencing previously freed memory, resulting in a double-free condition during cleanup. A remote attacker could exploit this vulnerability to corrupt process memory, potentially leading to arbitrary code execution or a Denial of Service (DoS) crash. |
| In ZxFdServer of zx_fd_grpc_ipc_builder.cc, there is a possible use after free due to a raw pointer to a server object that is not cleared when the server is destroyed. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation. |
| In BrEdrSignalingChannel::DecodeRxUnit of bredr_signaling_channel.cc, there is a possible use after free due to a missing object lifetime check in a command processing loop. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In StartDescriptorDiscovery of remote_service.cc, there is a possible use after free due to the service object being destroyed from within a synchronous callback while it is still iterating over its characteristics. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitation. |
| In FuchsiaVideoOutputProvider of fuchsia_video_output_provider.cc, there is a possible use after free due to a race condition. This could lead to remote code execution with no additional execution privileges needed. User interaction is needed for exploitation. |
| In NexustalkStream::PullFrameTask of nexustalk_stream.cc, there is a possible use after free due to a race condition. This could lead to remote code execution with no additional execution privileges needed. User interaction is needed for exploitation. |
| In LogExportControllerImpl of log_export_fidl.cc, there is a possible use after free due to a service handler that is not unregistered when the object is destroyed. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation. |