# CVE-2025-38208: smb: client: add NULL check in automount_fullpath

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:28.226Z
- Modified: 2026-11-05T21:18:21.573Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

smb: client: add NULL check in automount_fullpath

page is checked for null in __build_path_from_dentry_optional_prefix
when tcon->origin_fullpath is not set. However, the check is missing when
it is set.
Add a check to prevent a potential NULL pointer dereference.

(As written by CVE List.)

## Affected

- Linux Linux: from d5a863a153e90996ab2aef6b9e08d509f4d5662b before 37166d63e42c34846a16001950ecec96229a8d17; from d5a863a153e90996ab2aef6b9e08d509f4d5662b before a9e916fa5c7d0ec2256aa44aa24ddd92f529ce35; from d5a863a153e90996ab2aef6b9e08d509f4d5662b before cce8e71ca1f7ad9045707f0d22490c1e9ed1df6c; from d5a863a153e90996ab2aef6b9e08d509f4d5662b before f1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c; e91802036b3e6e6e803a17ddf5783a6354fe5380; from 6.2.13 before 6.3; 6.3 (not affected: before 6.3; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4

## References

- <https://git.kernel.org/stable/c/37166d63e42c34846a16001950ecec96229a8d17> (patch)
- <https://git.kernel.org/stable/c/a9e916fa5c7d0ec2256aa44aa24ddd92f529ce35> (patch)
- <https://git.kernel.org/stable/c/cce8e71ca1f7ad9045707f0d22490c1e9ed1df6c> (patch)
- <https://git.kernel.org/stable/c/f1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-38208 · Whole record: https://cve.day/CVE-2025-38208.json · Rebuilt by cve.day 2026-11-25T22:59:00.643Z
