platform/x86: dell-wmi-sysman: Avoid buffer overflow in current_password_store()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: dell-wmi-sysman: Avoid buffer overflow in current_password_store()
If the 'buf' array received from the user contains an empty string, the 'length' variable will be zero. Accessing the 'buf' array element with index 'length - 1' will result in a buffer overflow.
Add a check for an empty string.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
References
- git.kernel.org/stable/c/fb7cde625872709b8cedad9b241e0ec3d82fa7d3Patch
- git.kernel.org/stable/c/60bd13f8c4b3de2c910ae1cdbef85b9bbc9685f5Patch
- git.kernel.org/stable/c/f86465626917df3b8bdd2756ec0cc9d179c5af0fPatch
- git.kernel.org/stable/c/8594a123cfa23d708582dc6fb36da34479ef8a5bPatch
- git.kernel.org/stable/c/97066373ffd55bd9af0b512ff3dd1f647620a3dcPatch
- git.kernel.org/stable/c/4e89a4077490f52cde652d17e32519b666abf3a6Patch
- lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlAdvisory
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38077.json
- nvd.nist.gov/vuln/detail/CVE-2025-38077
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git