smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.181, 6.1.135, 6.10.10, 6.6.51
- CVEs
- CVE-2024-46742
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 21:51 UTC · Revision 1
Source evidence
smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
core-osv · Original sourcePublished 18 Sept 2024, 07:12 UTC
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().
osv:CVE-2024-46742
Kernel
Fixed versions: 5.15.181, 6.1.135, 6.6.51, 6.10.10
Complete source record
{
"id": "8f41ce00e19a957f4352241b5c2d60817fe04d1cb749645dbf543303266a77f1",
"url": "https://osv.dev/vulnerability/CVE-2024-46742",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()",
"summary": "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().",
"evidence": "osv:CVE-2024-46742",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.181",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.135",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.51",
"evidence": "/affected/1/ranges"
},
{
"value": "6.10.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-46742",
"aliases": [
"CVE-2024-46742"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0626e6641f6b467447c81dd7678a69c66f7746cf"
},
{
"fixed": "878f32878351104448b86ef5b85d1f8ed6f599fb"
},
{
"fixed": "ec28c35029b7930f31117f9284874b63bea4f31b"
},
{
"fixed": "07f384c5be1f8633b13f0a22616e227570450bc6"
},
{
"fixed": "3b692794b81f2ecad69a4adbba687f3836824ada"
},
{
"fixed": "4e8771a3666c8f216eefd6bd2fd50121c6c437db"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46742.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "5.15.181"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.135"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.51"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46742.json"
}
}
],
"modified": "2026-10-28T02:30:23.967881882Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/07f384c5be1f8633b13f0a22616e227570450bc6",
"https://git.kernel.org/stable/c/3b692794b81f2ecad69a4adbba687f3836824ada",
"https://git.kernel.org/stable/c/4e8771a3666c8f216eefd6bd2fd50121c6c437db",
"https://git.kernel.org/stable/c/878f32878351104448b86ef5b85d1f8ed6f599fb",
"https://git.kernel.org/stable/c/ec28c35029b7930f31117f9284874b63bea4f31b",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46742.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-46742",
"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/46xxx/CVE-2024-46742.json"
}
},
"related_cves": [
{
"value": "CVE-2024-46742",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490368,
"published_at": "2024-09-18T07:12:03.251+00:00"
}