Skip to content
Heist/ feed
Back to feed
MediumFix available

dlm: fix possible lkb_resource null dereference

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: dlm: fix possible lkb_resource null dereference This patch fixes a possible null pointer dereference when this function is called from request_lock() as lkb->lkb_resource is not assigned yet, only after validate_lock_args() by calling attach_lkb(). Another issue is that a resource name could be a non printable bytearray and we cannot assume to be ASCII coded. The log functionality is probably never being hit when DLM is used in normal way and no debug logging is enabled. The null pointer dereference can only occur on a new created lkb that does not have the resource assigned yet, it probably never hits the null pointer dereference but we should be sure that other changes might not change this behaviour and we actually can hit the mentioned null pointer dereference. In this patch we just drop the printout of the resource name, the lkb id is enough to make a possible connection to a resource name if this exists.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.209, 6.1.167, 6.12.5, 6.6.66
CVEs
CVE-2024-47809
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 04:40 UTC · Revision 1

Source evidence

dlm: fix possible lkb_resource null dereference

core-osv · Original source

Published 11 Jan 2025, 12:25 UTC

In the Linux kernel, the following vulnerability has been resolved: dlm: fix possible lkb_resource null dereference This patch fixes a possible null pointer dereference when this function is called from request_lock() as lkb->lkb_resource is not assigned yet, only after validate_lock_args() by calling attach_lkb(). Another issue is that a resource name could be a non printable bytearray and we cannot assume to be ASCII coded. The log functionality is probably never being hit when DLM is used in normal way and no debug logging is enabled. The null pointer dereference can only occur on a new created lkb that does not have the resource assigned yet, it probably never hits the null pointer dereference but we should be sure that other changes might not change this behaviour and we actually can hit the mentioned null pointer dereference. In this patch we just drop the printout of the resource name, the lkb id is enough to make a possible connection to a resource name if this exists.

osv:CVE-2024-47809

Kernel

Fixed versions: 5.15.209, 6.1.167, 6.6.66, 6.12.5

Complete source record
{
  "id": "854f0b6ef23afcff67e1c1a0e807bd32ef2bade81199ca42f67c076e3b071656",
  "url": "https://osv.dev/vulnerability/CVE-2024-47809",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "dlm: fix possible lkb_resource null dereference",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: dlm: fix possible lkb_resource null dereference This patch fixes a possible null pointer dereference when this function is called from request_lock() as lkb->lkb_resource is not assigned yet, only after validate_lock_args() by calling attach_lkb(). Another issue is that a resource name could be a non printable bytearray and we cannot assume to be ASCII coded. The log functionality is probably never being hit when DLM is used in normal way and no debug logging is enabled. The null pointer dereference can only occur on a new created lkb that does not have the resource assigned yet, it probably never hits the null pointer dereference but we should be sure that other changes might not change this behaviour and we actually can hit the mentioned null pointer dereference. In this patch we just drop the printout of the resource name, the lkb id is enough to make a possible connection to a resource name if this exists.",
    "evidence": "osv:CVE-2024-47809",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.209",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.167",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.66",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-47809",
      "aliases": [
        "CVE-2024-47809"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/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": "43279e5376017c40b4be9af5bc79cbb4ef6f53d7"
                },
                {
                  "fixed": "e1ffea6bec96d4349dbfcc42ad3e436259f64243"
                },
                {
                  "fixed": "8d55ce46dd543c6965970ce70c22c3076dd35b1e"
                },
                {
                  "fixed": "6fbdc3980b70e9c1c86eccea7d5ee68108008fa7"
                },
                {
                  "fixed": "2db11504ef82a60c1a2063ba7431a5cd013ecfcb"
                },
                {
                  "fixed": "b98333c67daf887c724cd692e88e2db9418c0861"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47809.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.30"
                },
                {
                  "fixed": "5.15.209"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.167"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.66"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47809.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.068386323Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-784472.html",
        "https://git.kernel.org/stable/c/2db11504ef82a60c1a2063ba7431a5cd013ecfcb",
        "https://git.kernel.org/stable/c/6fbdc3980b70e9c1c86eccea7d5ee68108008fa7",
        "https://git.kernel.org/stable/c/8d55ce46dd543c6965970ce70c22c3076dd35b1e",
        "https://git.kernel.org/stable/c/b98333c67daf887c724cd692e88e2db9418c0861",
        "https://git.kernel.org/stable/c/e1ffea6bec96d4349dbfcc42ad3e436259f64243",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47809.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47809",
        "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/47xxx/CVE-2024-47809.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47809",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518209,
  "published_at": "2025-01-11T12:25:15.356+00:00"
}