Skip to content
Heist/ feed
Back to feed
HighFix available

bluetooth/l2cap: sync sock recv cb and release

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: bluetooth/l2cap: sync sock recv cb and release The problem occurs between the system call to close the sock and hci_rx_work, where the former releases the sock and the latter accesses it without lock protection. CPU0 CPU1 ---- ---- sock_close hci_rx_work l2cap_sock_release hci_acldata_packet l2cap_sock_kill l2cap_recv_frame sk_free l2cap_conless_channel l2cap_sock_recv_cb If hci_rx_work processes the data that needs to be received before the sock is closed, then everything is normal; Otherwise, the work thread may access the released sock when receiving data. Add a chan mutex in the rx callback of the sock to achieve synchronization between the sock release and recv cb. Sock is dead, so set chan data to NULL, avoid others use invalid sock pointer.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.271, 5.15.222, 6.1.101, 6.6.42, 6.9.11
CVEs
CVE-2024-41062
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:42 UTC · Revision 1

Source evidence

bluetooth/l2cap: sync sock recv cb and release

core-osv · Original source

Published 29 Jul 2024, 14:57 UTC

In the Linux kernel, the following vulnerability has been resolved: bluetooth/l2cap: sync sock recv cb and release The problem occurs between the system call to close the sock and hci_rx_work, where the former releases the sock and the latter accesses it without lock protection. CPU0 CPU1 ---- ---- sock_close hci_rx_work l2cap_sock_release hci_acldata_packet l2cap_sock_kill l2cap_recv_frame sk_free l2cap_conless_channel l2cap_sock_recv_cb If hci_rx_work processes the data that needs to be received before the sock is closed, then everything is normal; Otherwise, the work thread may access the released sock when receiving data. Add a chan mutex in the rx callback of the sock to achieve synchronization between the sock release and recv cb. Sock is dead, so set chan data to NULL, avoid others use invalid sock pointer.

osv:CVE-2024-41062

Kernel

Fixed versions: 5.10.271, 5.15.222, 6.1.101, 6.6.42, 6.9.11

Complete source record
{
  "id": "399d1f9a9b14f063f355258e8a9a1f56d2d7abbd975c4fd3a27e6978d4d2728a",
  "url": "https://osv.dev/vulnerability/CVE-2024-41062",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bluetooth/l2cap: sync sock recv cb and release",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: bluetooth/l2cap: sync sock recv cb and release The problem occurs between the system call to close the sock and hci_rx_work, where the former releases the sock and the latter accesses it without lock protection. CPU0 CPU1 ---- ---- sock_close hci_rx_work l2cap_sock_release hci_acldata_packet l2cap_sock_kill l2cap_recv_frame sk_free l2cap_conless_channel l2cap_sock_recv_cb If hci_rx_work processes the data that needs to be received before the sock is closed, then everything is normal; Otherwise, the work thread may access the released sock when receiving data. Add a chan mutex in the rx callback of the sock to achieve synchronization between the sock release and recv cb. Sock is dead, so set chan data to NULL, avoid others use invalid sock pointer.",
    "evidence": "osv:CVE-2024-41062",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.271",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.222",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.101",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-41062",
      "aliases": [
        "CVE-2024-41062"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa"
                },
                {
                  "fixed": "59a3ccd749b2550392ee531b4d727022eae4c89f"
                },
                {
                  "fixed": "9c0b7d61cf3c00f87f2529b5b8b785f0f65089aa"
                },
                {
                  "fixed": "605572e64cd9cebb05ed609d96cff05b50d18cdf"
                },
                {
                  "fixed": "b803f30ea23e0968b6c8285c42adf0d862ab2bf6"
                },
                {
                  "fixed": "3b732449b78183d17178db40be3a4401cf3cd629"
                },
                {
                  "fixed": "89e856e124f9ae548572c56b1b70c2255705f8fe"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41062.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.4.0"
                },
                {
                  "fixed": "5.10.271"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.222"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.101"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.9.11"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41062.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.379961830Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3b732449b78183d17178db40be3a4401cf3cd629",
        "https://git.kernel.org/stable/c/59a3ccd749b2550392ee531b4d727022eae4c89f",
        "https://git.kernel.org/stable/c/605572e64cd9cebb05ed609d96cff05b50d18cdf",
        "https://git.kernel.org/stable/c/89e856e124f9ae548572c56b1b70c2255705f8fe",
        "https://git.kernel.org/stable/c/9c0b7d61cf3c00f87f2529b5b8b785f0f65089aa",
        "https://git.kernel.org/stable/c/b803f30ea23e0968b6c8285c42adf0d862ab2bf6",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41062.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-41062",
        "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/41xxx/CVE-2024-41062.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-41062",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 501220,
  "published_at": "2024-07-29T14:57:24.352+00:00"
}