CVE-2024-56700

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
28/12/2024
Last modified:
26/09/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> media: wl128x: Fix atomicity violation in fmc_send_cmd()<br /> <br /> Atomicity violation occurs when the fmc_send_cmd() function is executed<br /> simultaneously with the modification of the fmdev-&gt;resp_skb value.<br /> Consider a scenario where, after passing the validity check within the<br /> function, a non-null fmdev-&gt;resp_skb variable is assigned a null value.<br /> This results in an invalid fmdev-&gt;resp_skb variable passing the validity<br /> check. As seen in the later part of the function, skb = fmdev-&gt;resp_skb;<br /> when the invalid fmdev-&gt;resp_skb passes the check, a null pointer<br /> dereference error may occur at line 478, evt_hdr = (void *)skb-&gt;data;<br /> <br /> To address this issue, it is recommended to include the validity check of<br /> fmdev-&gt;resp_skb within the locked section of the function. This<br /> modification ensures that the value of fmdev-&gt;resp_skb does not change<br /> during the validation process, thereby maintaining its validity.<br /> <br /> This possible bug is found by an experimental static analysis tool<br /> developed by our team. This tool analyzes the locking APIs<br /> to extract function pairs that can be concurrently executed, and then<br /> analyzes the instructions in the paired functions to identify possible<br /> concurrency bugs including data races and atomicity violations.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 2.6.39 (including) 4.19.325 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.287 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.231 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.174 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.120 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.64 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.12 (including) 6.12.2 (excluding)