CVE-2023-54250

ksmbd: avoid out of bounds access in decode_preauth_ctxt()

8.2 high EPSS 0.52%

Published 30 Dec 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2023-54250

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54250 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

8.2 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality low, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 39f5b4b313b445c980a2a295bed28228c29228ed
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before a2f6ded41bec1d3be643c80a5eb97f1680309001
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before f02edb9debbd36f44efa7567031485892c7df60d
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before e7067a446264a7514fa1cfaa4052cdb6803bc6a2
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.145 up to and including 5.15.*
unaffected from 6.1.25 up to and including 6.1.*
unaffected from 6.2.12 up to and including 6.2.*
unaffected 6.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54250 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54250

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54250
trivy image --scanners vuln IMAGE | grep CVE-2023-54250

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54250 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.