Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-54250

published high CVSS 3.1 · 8.2

ksmbd: avoid out of bounds access in decode_preauth_ctxt()

Published
30 Dec 2025, 12:15:47 UTC
Updated
05 Aug 2026, 09:18:25 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 39f5b4b313b445c980a2a295bed28228c29228ed · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < a2f6ded41bec1d3be643c80a5eb97f1680309001 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f02edb9debbd36f44efa7567031485892c7df60d · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < e7067a446264a7514fa1cfaa4052cdb6803bc6a2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.145 through 5.15.* (unaffected · semver) · 6.1.25 through 6.1.* (unaffected · semver) · 6.2.12 through 6.2.* (unaffected · semver) · 6.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: avoid out of bounds access in decode_preauth_ctxt() Confirm that the accessed pneg_ctxt->HashAlgorithms address sits within the SMB request boundary; deassemble_neg_contexts() only checks that the eight byte smb2_neg_context header + (client controlled) DataLength are within the packet boundary, which is insufficient. Checking for sizeof(struct smb2_preauth_neg_context) is overkill given that the type currently assumes SMB311_SALT_SIZE bytes of trailing Salt.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.2 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Scenarios
en: AV:N - The bug is in ksmbd, the in-kernel SMB server, and is triggered by parsing an SMB2 NEGOTIATE PDU received on TCP port 445. Any host able to reach the server's SMB port can send the malformed packet. AC:L - A single crafted NEGOTIATE request with a preauth-integrity context placed in the last 8 bytes of the PDU and DataLength=0 deterministically drives the read past the buffer; the attacker also chooses the exact kvmalloc size (pdu_size+4) and can repeat the connection freely to arrange a page-boundary-aligned or vmalloc-backed buffer. PR:N - SMB2 NEGOTIATE is the very first request on a connection, processed before session setup, authentication, or tree connect; ksmbd_smb2_check_message() even exempts NEGOTIATE from length validation. No credentials of any kind are required. UI:N - The server-side kthread parses the attacker's packet automatically on connection; no local user or administrator action is involved. S:U - The out-of-bounds read and its consequences are confined to the kernel's own memory and the ksmbd service; no security authority boundary such as a VM or IOMMU is crossed. C:L - The out-of-bounds access reads 2 bytes of adjacent heap memory at a fixed +4/+5 offset past the request buffer; the value is not returned, but the differing NEGOTIATE status code leaks whether those bytes equal 0x0001, giving a repeatable but strictly bounded heap-content oracle. I:N - decode_preauth_ctxt() only reads; no attacker- or OOB-derived data is written anywhere, and conn->preauth_info->Preauth_HashId is assigned a fixed constant on the success path, so no kernel state is corrupted. A:H - Because the attacker sizes the kvmalloc'd request buffer exactly, the buffer can end on a page boundary and — via the vmalloc fallback taken when the __GFP_NORETRY high-order kmalloc fails under attacker-induced memory pressure — the read strikes a guard page, causing an unrecoverable kernel page fault and oops (full panic with panic_on_oops); it also faults under KASAN/KFENCE/DEBUG_PAGEALLOC builds.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 39f5b4b313b445c980a2a295bed28228c29228ed (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < a2f6ded41bec1d3be643c80a5eb97f1680309001 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f02edb9debbd36f44efa7567031485892c7df60d (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < e7067a446264a7514fa1cfaa4052cdb6803bc6a2 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.145 through 5.15.* (unaffected · semver)6.1.25 through 6.1.* (unaffected · semver)6.2.12 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

ksmbd: avoid out of bounds access in decode_preauth_ctxt()

Provenance

Schema
5.2
Searchable
yes
Content hash
168b24219eebde61177e48426fa68f051f59a5801952d6d9606df357e6043e84
Ingested
23 Sep 2026, 08:15:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected