# CVE-2025-22039: ksmbd: fix overflow in dacloffset bounds check

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.81% (percentile 58, 2026-12-03)
- **CWE:** CWE-125, CWE-190
- **Published:** 2025-04-16T14:11:56.975Z
- **Modified:** 2026-09-14T12:17:35.030Z

## Who should check

- Anyone running Linux \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< abbb4ec41867f2cd1c971258e493893bf43bcbd3; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 8483d7b532be1d1bc149556a2fedf903868c6303; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 73f074fb5e139cd42ad75089abe4e28a49a30003; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6b8d379048b168a0dff5ab1acb975b933f368514; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 443b373a4df5a2cb9f7b8c4658b2afedeb16397f; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix overflow in dacloffset bounds check

The dacloffset field was originally typed as int and used in an
unchecked addition, which could overflow and bypass the existing
bounds check in both smb\_check\_perm\_dacl() and smb\_inherit\_dacl().

This could result in out-of-bounds memory access and a kernel crash
when dereferencing the DACL pointer.

This patch converts dacloffset to unsigned int and uses
check\_add\_overflow() to validate access to the DACL.

## Affected and fixed versions

- Linux: \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< abbb4ec41867f2cd1c971258e493893bf43bcbd3; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 8483d7b532be1d1bc149556a2fedf903868c6303; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 73f074fb5e139cd42ad75089abe4e28a49a30003; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6b8d379048b168a0dff5ab1acb975b933f368514; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 443b373a4df5a2cb9f7b8c4658b2afedeb16397f; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22039. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22039.md
Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < abbb4ec41867f2cd1c971258e493893bf43bcbd3; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 8483d7b532be1d1bc149556a2fedf903868c6303; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 73f074fb5e139cd42ad75089abe4e28a49a30003; >= 0626e6641f6b467447c81dd…
Fixed in: Linux 8483d7b532be1d1bc149556a2fedf903868c6303, Linux 73f074fb5e139cd42ad75089abe4e28a49a30003, Linux 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc, Linux 6b8d379048b168a0dff5ab1acb975b933f368514, Linux 443b373a4df5a2cb9f7b8c4658b2afedeb16397f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22039 being exploited?

There is no confirmed exploitation: CVE-2025-22039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-12-03).

### How serious is CVE-2025-22039?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-22039?

Linux \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< abbb4ec41867f2cd1c971258e493893bf43bcbd3; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 8483d7b532be1d1bc149556a2fedf903868c6303; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 73f074fb5e139cd42ad75089abe4e28a49a30003; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 6b8d379048b168a0dff5ab1acb975b933f368514; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< 443b373a4df5a2cb9f7b8c4658b2afedeb16397f; \>= 0626e6641f6b467447c81dd7678a69c66f7746cf, \< beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42; Linux 5.15.

### Is there a fix for CVE-2025-22039?

Yes. Fixed in Linux 8483d7b532be1d1bc149556a2fedf903868c6303, Linux 73f074fb5e139cd42ad75089abe4e28a49a30003, Linux 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc, Linux 6b8d379048b168a0dff5ab1acb975b933f368514, Linux 443b373a4df5a2cb9f7b8c4658b2afedeb16397f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-22039?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc>
- patch: <https://git.kernel.org/stable/c/6b8d379048b168a0dff5ab1acb975b933f368514>
- patch: <https://git.kernel.org/stable/c/443b373a4df5a2cb9f7b8c4658b2afedeb16397f>
- patch: <https://git.kernel.org/stable/c/beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42>
- other: <https://git.kernel.org/stable/c/abbb4ec41867f2cd1c971258e493893bf43bcbd3>
- other: <https://git.kernel.org/stable/c/8483d7b532be1d1bc149556a2fedf903868c6303>
- other: <https://git.kernel.org/stable/c/73f074fb5e139cd42ad75089abe4e28a49a30003>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22039>

HTML: <https://flawdb.com/CVE-2025-22039> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22039>
