Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42307
HistoryAug 17, 2024 - 9:09 a.m.

CVE-2024-42307 cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path

2024-08-1709:09:12
Linux
www.cve.org
2
linux kernel
potential null pointer
destroy_workqueue
init_cifs error path
smack static checker
serverclose workqueue
init_cifs patch

EPSS

0

Percentile

5.1%

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

cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path

Dan Carpenter reported a Smack static checker warning:
fs/smb/client/cifsfs.c:1981 init_cifs()
error: we previously assumed ‘serverclose_wq’ could be null (see line 1895)

The patch which introduced the serverclose workqueue used the wrong
oredering in error paths in init_cifs() for freeing it on errors.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/smb/client/cifsfs.c"
    ],
    "versions": [
      {
        "version": "8c99dfb49bdc",
        "lessThan": "6018971710fd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6f17163b9339",
        "lessThan": "160235efb4f9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "173217bd7336",
        "lessThan": "3739d711246d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "173217bd7336",
        "lessThan": "193cc89ea0ca",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/smb/client/cifsfs.c"
    ],
    "versions": [
      {
        "version": "6.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.103",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.44",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%