CVE-2026-99456 in Linuxinfo

Summary

by MITRE • 11/19/2026

In the Linux kernel, the following vulnerability has been resolved:

scsi: dc395x: sync the waiting_timer before freeing the host

The waiting_timer callback re-arms itself and takes the host lock. adapter_uninit() currently stops it with timer_delete(), which does not wait for a callback already running on another CPU. The final scsi_host_put() that frees the host (and the host lock the callback dereferences) runs right after adapter_uninit(), so a concurrent or just re-armed callback can fire after the free, leaving a potential use-after-free window.

Replace timer_delete() with timer_shutdown_sync() at the top of adapter_uninit(), before the host-lock section: the timer is dequeued, a running callback is waited for and rearming is blocked before the chip is halted, so it cannot fire at all once the adapter has ceased to function. Waiting outside the lock avoids the self-deadlock that would result from syncing a callback blocked on the lock we still hold.

No shutdown is needed for selto_timer because it has no reachable armer or callback.

This issue was found by an in-house static analysis tool.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/19/2026

The Linux kernel vulnerability identified within the dc395x SCSI driver presents a critical use-after-free condition arising from improper synchronization of timer resources during host adapter initialization and cleanup sequences. The core technical flaw lies in the interaction between the waiting_timer callback mechanism and the adapter_uninit function, which is responsible for tearing down the hardware interface. Specifically, the waiting_timer callback possesses self-rearming capabilities that allow it to re-trigger itself while simultaneously attempting to acquire the host lock. When adapter_uninit executes, it historically utilized timer_delete to stop this timer. However, timer_delete operates asynchronously with respect to currently executing callbacks on other CPUs; it dequeues the timer but does not wait for a callback instance already in progress to complete its execution. This lack of synchronization creates a race condition where the subsequent call to scsi_host_put, which frees the host structure and releases the associated lock, can occur while a delayed or re-armed callback is still active. Consequently, if that concurrent callback fires after the memory has been freed but before it is fully reclaimed by the kernel allocator, it attempts to dereference pointers within the now-invalidated host structure, leading to a use-after-free vulnerability.

The operational impact of this flaw is severe, as exploitation can lead to arbitrary code execution or system instability depending on how the attacker manipulates memory allocation patterns following the free operation. If an adversary can influence the timing of device removal or trigger specific SCSI operations that invoke adapter_uninit under concurrent load conditions, they may exploit the window where the host structure is freed but still referenced by a running timer callback. This scenario falls squarely under CWE-416, Use After Free, and aligns with ATT&CK techniques related to privilege escalation via kernel exploitation or denial of service through system crashes caused by invalid memory access. The vulnerability highlights a common pitfall in Linux kernel driver development where asynchronous resource cleanup is not properly synchronized against concurrent execution contexts, particularly when dealing with hardware-specific timers that have self-sustaining behaviors.

To mitigate this issue, the resolution involves replacing timer_delete with timer_shutdown_sync within adapter_uninit, positioned before the acquisition of the host lock to prevent deadlocks. This function ensures that any running callback is waited upon for completion and prevents further rearming of the timer, effectively guaranteeing that no callbacks will execute after the chip has been halted and the resources are being released. By waiting outside the held lock, the fix avoids a self-deadlock scenario where the callback would block on the host lock while holding it itself during synchronization. Additionally, the analysis confirmed that selto_timer does not require similar treatment because it lacks reachable arming mechanisms or callbacks, thereby eliminating unnecessary complexity in its shutdown path. This patch was identified through rigorous static code analysis, underscoring the importance of automated tooling in detecting subtle concurrency bugs that are difficult to reproduce manually but pose significant security risks when triggered under specific timing conditions.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/19/2026

Moderation

accepted

CPE

ready

EPSS

0.00168

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!