Lucene search

K
cvelistLinuxCVELIST:CVE-2024-40982
HistoryJul 12, 2024 - 12:32 p.m.

CVE-2024-40982 ssb: Fix potential NULL pointer dereference in ssb_device_uevent()

2024-07-1212:32:16
Linux
www.cve.org
6
linux kernel
vulnerability
ssb_device_uevent
null pointer
dereference
fix
linux verification center
svace

EPSS

0

Percentile

5.1%

In the Linux kernel, the following vulnerability has been resolved:

ssb: Fix potential NULL pointer dereference in ssb_device_uevent()

The ssb_device_uevent() function first attempts to convert the ‘dev’ pointer
to ‘struct ssb_device *’. However, it mistakenly dereferences ‘dev’ before
performing the NULL check, potentially leading to a NULL pointer
dereference if ‘dev’ is NULL.

To fix this issue, move the NULL check before dereferencing the ‘dev’ pointer,
ensuring that the pointer is valid before attempting to use it.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/ssb/main.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "c5dc2d8eb398",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "7d43c8377c6f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "789c17185fb0",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/ssb/main.c"
    ],
    "versions": [
      {
        "version": "6.6.36",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.7",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%