CVE-2025-22039

Source
https://cve.org/CVERecord?id=CVE-2025-22039
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22039.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22039
Downstream
BELL (1)
DEBIAN (1)
ECHO (1)
MINI (1)
OESA (5)
ROOT (3)
UBUNTU (1)
Published
2025-04-16T14:11:56Z
Modified
2026-09-16T03:30:25Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ksmbd: fix overflow in dacloffset bounds check
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22039.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
abbb4ec41867f2cd1c971258e493893bf43bcbd3
Fixed
8483d7b532be1d1bc149556a2fedf903868c6303
Fixed
73f074fb5e139cd42ad75089abe4e28a49a30003
Fixed
6a9cd9ff0fa2bcc30b2bfb8bdb161eb20e44b9dc
Fixed
6b8d379048b168a0dff5ab1acb975b933f368514
Fixed
443b373a4df5a2cb9f7b8c4658b2afedeb16397f
Fixed
beff0bc9d69bc8e733f9bca28e2d3df5b3e10e42

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22039.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.221
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.188
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.157
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.23
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.11
Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.14.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22039.json"