CVE-2026-43216
JSON

5.5medium

net: Drop the lock in skb_may_tx_timestamp()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: Drop the lock in skb_may_tx_timestamp() skb_may_tx_timestamp() may acquire sock::sk_callback_lock. The lock must not be taken in IRQ context, only softirq is okay. A few drivers receive the timestamp via a dedicated interrupt and complete the TX timestamp from that handler. This will lead to a deadlock if the lock is already write-locked on the same CPU. Taking the lock can be avoided. The socket (pointed by the skb) will remain valid until the skb is released. The ->sk_socket and ->file member will be set to NULL once the user closes the socket which may happen before the timestamp arrives. If we happen to observe the pointer while the socket is closing but before the pointer is set to NULL then we may use it because both pointer (and the file's cred member) are RCU freed. Drop the lock. Use READ_ONCE() to obtain the individual pointer. Add a matching WRITE_ONCE() where the pointer are cleared.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b245be1f4db1a0394e4b6eb66059814b46670ac3 before 4839cbda8f13e99ce2bb3b593f5cc3288415684b, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before 3709d73ace37e9aaebb688f5a5cf706d74350b64, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before cf7599116c4c0082fd25cb1bf0254631da0ed06e, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before cd2463ec60f0d6e460078037c86f9d0947ee1ff6, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before c770217044d9cbe16a1f7c385cf080ed06a2fc04, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before f3e4cceafad27c9363c33622732f86722846ec6f, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before e4c6efb3b70ff87f1df99efce2f8893717695718, from b245be1f4db1a0394e4b6eb66059814b46670ac3 before 983512f3a87fd8dc4c94dfa6b596b6e57df5aad7 and 1 more
Not affected: before 4.0, from 5.10.261 up to 5.10.*, from 5.15.212 up to 5.15.*, from 6.1.178 up to 6.1.*, from 6.6.145 up to 6.6.*, from 6.12.95 up to 6.12.*
CVE List
linux linux_kernelfrom 4.0 before 6.18.16, from 6.19 before 6.19.6, 7.0NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: Drop the lock in skb_may_tx_timestamp() skb_may_tx_timestamp() may acquire sock::sk_callback_lock. The lock must not be taken in IRQ context, only softirq is okay. A few drivers receive the timestamp via a dedicated interrupt and complete the TX timestamp from that handler. This will lead to a deadlock if the lock is already write-locked on the same CPU. Taking the lock can be avoided. The socket (pointed by the skb) will remain valid until the skb is released. The ->sk_socket and ->file member will be set to NULL once the user closes the socket which may happen before the timestamp arrives. If we happen to observe the pointer while the socket is closing but before the pointer is set to NULL then we may use it because both pointer (and the file's cred member) are RCU freed. Drop the lock. Use READ_ONCE() to obtain the individual pointer. Add a matching WRITE_ONCE() where the pointer are cleared.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: Eliminar el bloqueo en skb_may_tx_timestamp() skb_may_tx_timestamp() puede adquirir sock::sk_callback_lock. El bloqueo no debe ser tomado en contexto IRQ, solo softirq está bien. Algunos controladores reciben la marca de tiempo a través de una interrupción dedicada y completan la marca de tiempo TX desde ese gestor. Esto conducirá a un interbloqueo si el bloqueo ya está bloqueado para escritura en la misma CPU. Tomar el bloqueo puede evitarse. El socket (apuntado por el skb) permanecerá válido hasta que el skb sea liberado. El miembro -> sk_socket y -> file se establecerá en NULL una vez que el usuario cierre el socket, lo cual puede ocurrir antes de que llegue la marca de tiempo. Si llegamos a observar el puntero mientras el socket se está cerrando, pero antes de que el puntero se establezca en NULL, entonces podemos usarlo porque tanto el puntero (como el miembro cred del archivo) son liberados por RCU. Eliminar el bloqueo. Usar READ_ONCE() para obtener el puntero individual. Añadir un WRITE_ONCE() correspondiente donde los punteros son borrados.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43216 changed 2026-11-10CVE Terms of Use
NVDCVE-2026-43216 changed 2026-11-11Public domain