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

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-01)
- Published: 2025-04-16T14:11:56.975Z
- Modified: 2026-09-14T12:17:35.030Z
- Weaknesses: CWE-125, CWE-190
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before abbb4ec41867f2cd1c971258e493893bf43bcbd3; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8483d7b532be1d1bc149556a2fedf903868c6303; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 73f074fb5e139cd42ad75089abe4e28a49a30003; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6b8d379048b168a0dff5ab1acb975b933f368514; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 443b373a4df5a2cb9f7b8c4658b2afedeb16397f; from 0626e6641f6b467447c81dd7678a69c66f7746cf before beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42; 5.15 (not affected: before 5.15; from 5.15.221 up to 5.15.*; from 6.1.188 up to 6.1.*; from 6.6.157 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.15 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/abbb4ec41867f2cd1c971258e493893bf43bcbd3>
- <https://git.kernel.org/stable/c/8483d7b532be1d1bc149556a2fedf903868c6303>
- <https://git.kernel.org/stable/c/73f074fb5e139cd42ad75089abe4e28a49a30003>
- <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> (patch)

## Sources

- CVE List: [CVE-2025-22039](https://www.cve.org/CVERecord?id=CVE-2025-22039), CVE Terms of Use, modified 2026-09-14
- NVD: [CVE-2025-22039](https://nvd.nist.gov/vuln/detail/CVE-2025-22039), Public domain, modified 2026-09-14

---

Page: https://cve.day/CVE-2025-22039 · Whole record: https://cve.day/CVE-2025-22039.json · Rebuilt by cve.day 2026-11-25T22:58:56.578Z
