Skip to content
Heist/ feed
Back to feed
UnratedFix available

media: wl128x: Fix atomicity violation in fmc_send_cmd()

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.325, 5.10.231, 5.15.174, 5.4.287, 6.1.120, 6.11.11, 6.12.2, 6.6.64
CVEs
CVE-2024-56700
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 02:04 UTC · Revision 1

Source evidence

media: wl128x: Fix atomicity violation in fmc_send_cmd()

core-osv · Original source

Published 28 Dec 2024, 09:46 UTC

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

osv:CVE-2024-56700

Kernel

Fixed versions: 4.19.325, 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.64, 6.11.11, 6.12.2

Complete source record
{
  "id": "a29261cb1b3c772986b65d28f2ba2a16a9a79946d9096831f6a50b8dbb56e073",
  "url": "https://osv.dev/vulnerability/CVE-2024-56700",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: wl128x: Fix atomicity violation in fmc_send_cmd()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: media: wl128x: Fix atomicity violation in fmc_send_cmd() Atomicity violation occurs when the fmc_send_cmd() function is executed simultaneously with the modification of the fmdev->resp_skb value. Consider a scenario where, after passing the validity check within the function, a non-null fmdev->resp_skb variable is assigned a null value. This results in an invalid fmdev->resp_skb variable passing the validity check. As seen in the later part of the function, skb = fmdev->resp_skb; when the invalid fmdev->resp_skb passes the check, a null pointer dereference error may occur at line 478, evt_hdr = (void *)skb->data; To address this issue, it is recommended to include the validity check of fmdev->resp_skb within the locked section of the function. This modification ensures that the value of fmdev->resp_skb does not change during the validation process, thereby maintaining its validity. This possible bug is found by an experimental static analysis tool developed by our team. This tool analyzes the locking APIs to extract function pairs that can be concurrently executed, and then analyzes the instructions in the paired functions to identify possible concurrency bugs including data races and atomicity violations.",
    "evidence": "osv:CVE-2024-56700",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.325",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.287",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.231",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.174",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-56700",
      "aliases": [
        "CVE-2024-56700"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e8454ff7b9a4d56f02c095bff12d3c92ef4c7fa6"
                },
                {
                  "fixed": "d16109c9fdc1b8cea4fe63b42e06e926c3f68990"
                },
                {
                  "fixed": "3c818ad07e964bca3d27adac1e1f50e1e3c9180e"
                },
                {
                  "fixed": "d7408a052aa1b4f6fb6f1c7a8877b84017a07ac9"
                },
                {
                  "fixed": "ed228b74d8a500380150965d5becabf9a1e33141"
                },
                {
                  "fixed": "372dc9509122e5d45d4c12978e31c3c7d00aaca4"
                },
                {
                  "fixed": "378ce4e08ca2b1ac7bbf1d57b68643ca4226c5f8"
                },
                {
                  "fixed": "2e63c908de357048180516b84740ed62dac0b269"
                },
                {
                  "fixed": "80a3b2ee01eecf22dfa06968b3cde92c691dea10"
                },
                {
                  "fixed": "ca59f9956d4519ab18ab2270be47c6b8c6ced091"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56700.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.39"
                },
                {
                  "fixed": "4.19.325"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.287"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.231"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.174"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56700.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.728220674Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2e63c908de357048180516b84740ed62dac0b269",
        "https://git.kernel.org/stable/c/372dc9509122e5d45d4c12978e31c3c7d00aaca4",
        "https://git.kernel.org/stable/c/378ce4e08ca2b1ac7bbf1d57b68643ca4226c5f8",
        "https://git.kernel.org/stable/c/3c818ad07e964bca3d27adac1e1f50e1e3c9180e",
        "https://git.kernel.org/stable/c/80a3b2ee01eecf22dfa06968b3cde92c691dea10",
        "https://git.kernel.org/stable/c/ca59f9956d4519ab18ab2270be47c6b8c6ced091",
        "https://git.kernel.org/stable/c/d16109c9fdc1b8cea4fe63b42e06e926c3f68990",
        "https://git.kernel.org/stable/c/d7408a052aa1b4f6fb6f1c7a8877b84017a07ac9",
        "https://git.kernel.org/stable/c/ed228b74d8a500380150965d5becabf9a1e33141",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56700.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-56700",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56700.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-56700",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 509277,
  "published_at": "2024-12-28T09:46:22.77+00:00"
}