Skip to content
Heist/ feed
Back to feed
MediumFix available

sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: sock_map: fix a NULL pointer dereference in sock_map_link_update_prog() The following race condition could trigger a NULL pointer dereference: sock_map_link_detach(): sock_map_link_update_prog(): mutex_lock(&sockmap_mutex); ... sockmap_link->map = NULL; mutex_unlock(&sockmap_mutex); mutex_lock(&sockmap_mutex); ... sock_map_prog_link_lookup(sockmap_link->map); mutex_unlock(&sockmap_mutex); Fix it by adding a NULL pointer check. In this specific case, it makes no sense to update a link which is being released.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.11.7
CVEs
CVE-2024-50260
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 03:01 UTC · Revision 1

Source evidence

sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()

core-osv · Original source

Published 9 Nov 2024, 10:15 UTC

In the Linux kernel, the following vulnerability has been resolved: sock_map: fix a NULL pointer dereference in sock_map_link_update_prog() The following race condition could trigger a NULL pointer dereference: sock_map_link_detach(): sock_map_link_update_prog(): mutex_lock(&sockmap_mutex); ... sockmap_link->map = NULL; mutex_unlock(&sockmap_mutex); mutex_lock(&sockmap_mutex); ... sock_map_prog_link_lookup(sockmap_link->map); mutex_unlock(&sockmap_mutex); Fix it by adding a NULL pointer check. In this specific case, it makes no sense to update a link which is being released.

osv:CVE-2024-50260

Kernel

Fixed versions: 6.11.7

Complete source record
{
  "id": "ee07beb30362deaac19d7f65dead36240e030a7bb8df495d03e484af60d47721",
  "url": "https://osv.dev/vulnerability/CVE-2024-50260",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "sock_map: fix a NULL pointer dereference in sock_map_link_update_prog()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: sock_map: fix a NULL pointer dereference in sock_map_link_update_prog() The following race condition could trigger a NULL pointer dereference: sock_map_link_detach(): sock_map_link_update_prog(): mutex_lock(&sockmap_mutex); ... sockmap_link->map = NULL; mutex_unlock(&sockmap_mutex); mutex_lock(&sockmap_mutex); ... sock_map_prog_link_lookup(sockmap_link->map); mutex_unlock(&sockmap_mutex); Fix it by adding a NULL pointer check. In this specific case, it makes no sense to update a link which is being released.",
    "evidence": "osv:CVE-2024-50260",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.11.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-50260",
      "aliases": [
        "CVE-2024-50260"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "699c23f02c65cbfc3e638f14ce0d70c23a2e1f02"
                },
                {
                  "fixed": "9afe35fdda16e09d5bd3c49a68ba8c680dd678bd"
                },
                {
                  "fixed": "740be3b9a6d73336f8c7d540842d0831dc7a808b"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50260.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.10.0"
                },
                {
                  "fixed": "6.11.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50260.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.499734745Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/740be3b9a6d73336f8c7d540842d0831dc7a808b",
        "https://git.kernel.org/stable/c/9afe35fdda16e09d5bd3c49a68ba8c680dd678bd",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50260.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50260",
        "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/50xxx/CVE-2024-50260.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50260",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 522032,
  "published_at": "2024-11-09T10:15:13.271+00:00"
}