Lucene search

K
cvelistLinuxCVELIST:CVE-2024-46742
HistorySep 18, 2024 - 7:12 a.m.

CVE-2024-46742 smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()

2024-09-1807:12:03
Linux
www.cve.org
9
linux kernel
cve-2024-46742
smb/server
vulnerability
fix
null-ptr-deref
lease_ctx_info
smb2_open
parse_lease_state
parse_durable_handle_context

EPSS

0

Percentile

16.4%

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

smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()

null-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE)
and parse_lease_state() return NULL.

Fix this by check if ‘lease_ctx_info’ is NULL.

Additionally, remove the redundant parentheses in
parse_durable_handle_context().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/smb/server/oplock.c",
      "fs/smb/server/smb2pdu.c"
    ],
    "versions": [
      {
        "version": "1da177e4c3f4",
        "lessThan": "07f384c5be1f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "3b692794b81f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1da177e4c3f4",
        "lessThan": "4e8771a3666c",
        "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/server/oplock.c",
      "fs/smb/server/smb2pdu.c"
    ],
    "versions": [
      {
        "version": "6.6.51",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.10",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

16.4%

Related for CVELIST:CVE-2024-46742