CVE-2025-21946: ksmbd: fix out-of-bounds in parse_sec_desc()
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bounds in parse_sec_desc()
If osidoffset, gsidoffset and dacloffset could be greater than smb_ntsd
struct size. If it is smaller, It could cause slab-out-of-bounds.
And when validating sid, It need to check it included subauth array size.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux's in-kernel SMB server, ksmbd, can access memory outside an expected buffer when processing malformed security-descriptor data. The supplied CVSS score is 8.8 because a low-privileged network user may trigger serious confidentiality, integrity, and availability impacts. Systems not using ksmbd are unlikely to be exposed.
Executive priority
Prioritize rapid remediation for systems running reachable ksmbd, especially internet-facing or broadly accessible file servers. Schedule expedited kernel updates and reboot coordination because exploitation could affect sensitive data and service availability. Systems without ksmbd should still be inventoried and documented, but they are lower priority for this specific issue.
Technical view
parse_sec_desc() insufficiently validated owner SID, group SID, and DACL offsets against the SMB security-descriptor size. SID validation also failed to ensure the sub-authority array was fully contained. Crafted input could therefore cause slab out-of-bounds access. The cited Linux stable commits add the resolved checks; the bundle does not establish code execution.
Likely exposure
Exposure requires a vulnerable Linux kernel with ksmbd enabled and reachable. The CVSS vector indicates network access, low complexity, low privileges, and no user interaction. The bundle lists several affected releases, but its anomalous โ0โ entry and repeated commit identifiers make exact version-range interpretation unreliable; confirm status through the Linux or distribution vendor.
Exploitation context
The supplied record says this issue can cause slab out-of-bounds access and models high impact across confidentiality, integrity, and availability. It is not listed in CISA KEV, and the supplied sources provide no evidence of active exploitation or a public exploit. Treat exploitability as plausible but operational status as unconfirmed.
Researcher notes
The root issue is incomplete bounds validation for security-descriptor offsets and SID sub-authority arrays. The CVSS vector supports remote, authenticated, low-complexity triggering, but does not prove practical exploitation or code execution. Exact affected and fixed release boundaries are unclear from the supplied version metadata; use the cited commits and distribution backport information for authoritative mapping.
Mitigation direction
Update to a vendor-supported kernel containing the applicable cited stable fix.
Consult the Linux distribution's advisory for package-specific fixed versions.
Disable ksmbd where SMB server functionality is unnecessary.
Restrict SMB access to trusted networks and authenticated users until patched.
Reboot into the updated kernel after package installation.
Validation and detection
Identify running kernel versions on systems providing SMB services.
Confirm whether ksmbd is loaded, enabled, or listening for SMB connections.
Compare deployed kernel packages with vendor advisories and cited stable commits.
After updating, verify systems booted into the corrected kernel.
Recheck that SMB exposure is limited to intended networks.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve ยท low confidence lookup
CVE-2025-21946 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
6Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.