CVE-2025-22039
JSON

8.8high

ksmbd: fix overflow in dacloffset bounds check

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.81% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 5.15 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: corrección de desbordamiento en la comprobación de los límites de dacloffset. El campo dacloffset se tipificó originalmente como int y se usó en una adición sin comprobar, lo que podría desbordarse y omitir la comprobación de los límites existente tanto en smb_check_perm_dacl() como en smb_inherit_dacl(). Esto podría provocar un acceso a memoria fuera de los límites y un fallo del kernel al desreferenciar el puntero DACL. Este parche convierte dacloffset a unsigned int y utiliza check_add_overflow() para validar el acceso a la DACL.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22039 changed 2026-09-14CVE Terms of Use
NVDCVE-2025-22039 changed 2026-09-14Public domain