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-54203

published critical CVSS 3.1 · 9.1

ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr

Published
30 Dec 2025, 12:09:07 UTC
Updated
05 Aug 2026, 09:18:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux51a8534c0f35c0401e45f1055f914729cad98bf9 to < 921536046bd165efeb07beef5630aff35cd6a489 · 0b3ec5671ac06829ccebdaeec05acedfec327f42 to < a8334a0c535d0f0b4d64926c8fe0922ed98f7d43 · cc32cd98a0aee4cc3eb611cbce11795b1aaa738a to < 99a51c673b1d2d0b5a972353401b77612d9cc713 · 39b291b86b5988bf8753c3874d5c773399d09b96 to < dc8289f912387c3bcfbc5d2db29c8947fa207c11 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15.105 to < 5.15.145 · 6.1.22 to < 6.1.24 · 6.2.9 to < 6.2.11 · Other versions: unaffected Affected 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: fix slab-out-of-bounds in init_smb2_rsp_hdr When smb1 mount fails, KASAN detect slab-out-of-bounds in init_smb2_rsp_hdr like the following one. For smb1 negotiate(56bytes) , init_smb2_rsp_hdr() for smb2 is called. The issue occurs while handling smb1 negotiate as smb2 server operations. Add smb server operations for smb1 (get_cmd_val, init_rsp_hdr, allocate_rsp_buf, check_user_session) to handle smb1 negotiate so that smb2 server operation does not handle it. [ 411.400423] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers [ 411.400452] CIFS: Attempting to mount \\192.168.45.139\homes [ 411.479312] ksmbd: init_smb2_rsp_hdr : 492 [ 411.479323] ================================================================== [ 411.479327] BUG: KASAN: slab-out-of-bounds in init_smb2_rsp_hdr+0x1e2/0x1f4 [ksmbd] [ 411.479369] Read of size 16 at addr ffff888488ed0734 by task kworker/14:1/199 [ 411.479379] CPU: 14 PID: 199 Comm: kworker/14:1 Tainted: G OE 6.1.21 #3 [ 411.479386] Hardware name: ASUSTeK COMPUTER INC. Z10PA-D8 Series/Z10PA-D8 Series, BIOS 3801 08/23/2019 [ 411.479390] Workqueue: ksmbd-io handle_ksmbd_work [ksmbd] [ 411.479425] Call Trace: [ 411.479428] <TASK> [ 411.479432] dump_stack_lvl+0x49/0x63 [ 411.479444] print_report+0x171/0x4a8 [ 411.479452] ? kasan_complete_mode_report_info+0x3c/0x200 [ 411.479463] ? init_smb2_rsp_hdr+0x1e2/0x1f4 [ksmbd] [ 411.479497] kasan_report+0xb4/0x130 [ 411.479503] ? init_smb2_rsp_hdr+0x1e2/0x1f4 [ksmbd] [ 411.479537] kasan_check_range+0x149/0x1e0 [ 411.479543] memcpy+0x24/0x70 [ 411.479550] init_smb2_rsp_hdr+0x1e2/0x1f4 [ksmbd] [ 411.479585] handle_ksmbd_work+0x109/0x760 [ksmbd] [ 411.479616] ? _raw_spin_unlock_irqrestore+0x50/0x50 [ 411.479624] ? smb3_encrypt_resp+0x340/0x340 [ksmbd] [ 411.479656] process_one_work+0x49c/0x790 [ 411.479667] worker_thread+0x2b1/0x6e0 [ 411.479674] ? process_one_work+0x790/0x790 [ 411.479680] kthread+0x177/0x1b0 [ 411.479686] ? kthread_complete_and_exit+0x30/0x30 [ 411.479692] ret_from_fork+0x22/0x30 [ 411.479702] </TASK>

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
9.1 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:N - ksmbd is the in-kernel SMB server listening on TCP/445; the vulnerable `init_smb2_rsp_hdr()` is reached directly from `ksmbd_conn_handler_loop()` processing bytes received from a remote peer. No local access is involved. AC:L - The attacker simply opens a TCP connection and sends one crafted SMB1-protocol PDU with a short RFC1002 length; the 16-byte read at fixed offset 52-68 occurs deterministically with no race and no dependence on conditions outside the attacker's control (the attacker even picks the allocation size, hence the slab bucket). PR:N - The defect triggers on the very first packet of a connection, in `init_rsp_hdr()` which runs before `ksmbd_verify_smb_message()`, before negotiate completes and before any session setup or credential validation. No authentication whatsoever is required. UI:N - The attacker drives the entire exchange by connecting to the SMB port and sending a packet; no action by any local user or administrator is needed. S:U - The out-of-bounds read and its consequences are confined to the kernel's own memory and the ksmbd server's security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - 16 bytes of adjacent kernel slab memory are memcpy'd into the response Signature field and transmitted back to the unauthenticated attacker via `ksmbd_conn_write()` (response length 64 includes offsets 52-68), and the attacker chooses `pdu_size` to select the slab cache and read distance — a repeatable, groomable disclosure of kernel heap contents including pointers and neighbouring session data. I:N - The defect is a read past the end of the request buffer; all writes (the response header memset/memcpy) stay within the 448-byte response allocation, so no out-of-bounds write or kernel data modification primitive exists. A:H - The read runs off the end of a tiny attacker-sized kmalloc object and is reported by KASAN as shown in the commit (a panic on `panic_on_warn` kernels), and on KFENCE/DEBUG_PAGEALLOC-enabled distro kernels it can fault on a guard page, oopsing the ksmbd workqueue thread; the attacker can retry indefinitely pre-authentication to hit that condition.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 51a8534c0f35c0401e45f1055f914729cad98bf9 to < 921536046bd165efeb07beef5630aff35cd6a489 (affected · git)0b3ec5671ac06829ccebdaeec05acedfec327f42 to < a8334a0c535d0f0b4d64926c8fe0922ed98f7d43 (affected · git)cc32cd98a0aee4cc3eb611cbce11795b1aaa738a to < 99a51c673b1d2d0b5a972353401b77612d9cc713 (affected · git)39b291b86b5988bf8753c3874d5c773399d09b96 to < dc8289f912387c3bcfbc5d2db29c8947fa207c11 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15.105 to < 5.15.145 (affected · semver)6.1.22 to < 6.1.24 (affected · semver)6.2.9 to < 6.2.11 (affected · semver)Default: unaffected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr

Provenance

Schema
5.2
Searchable
yes
Content hash
d0480e3546529a830bcaf082e9db889499130185ddb18e996446931145fae964
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