CVE-2025-21946

ksmbd: fix out-of-bounds in parse_sec_desc()

HIGH
7.1
CVSS Score
Published: April 1, 2025 at 03:41 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.5%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 6.1.1605.15 ≤ v < 6.12.195.15 ≤ v < 6.13.75.15 ≤ v < 6.145.15 ≤ v < 6.6.836.13 ≤ v < 6.13.76.7 ≤ v < 6.12.196.14 rc16.14 rc26.14 rc36.14 rc46.14 rc5626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 159d059cbcb0e6d0e7a7b34af3862ba09a6b22d1 (fixed)
Vendor states this is fixed in 6a9831180d0b23b5c97e2bd841aefc8f82900172 (fixed)
Vendor states this is fixed in c1569dbbe2d43041be9f3fef7ca08bec3b66ad1b (fixed)
Vendor states this is fixed in d6e13e19063db24f94b690159d0633aaf72a0f03 (fixed)
Vendor states this is fixed in f4ee19528664777af8b842f8f001be98345aa973 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.160 (unaffected)
Vendor states this is fixed in 6.12.19 (unaffected)
Vendor states this is fixed in 6.13.7 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.83 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card