# CVE-2025-71223: smb/server: fix refcount leak in smb2_open()

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-02-14T16:27:06.060Z
- Modified: 2026-06-17T10:03:54.323Z
- Assigned by: Linux

## Description

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

smb/server: fix refcount leak in smb2_open()

When ksmbd_vfs_getattr() fails, the reference count of ksmbd_file
must be released.

(As written by CVE List.)

## Affected

- Linux Linux: from 8df4bcdb0a4232192b2445256c39b787d58ef14d before 2456fde2b137703328f1695f60c68fe488d17e36; from c8efcc786146a951091588e5fa7e3c754850cb3c before 39ca11ff158c98fb092176f06047628c54bcf7a1; from c8efcc786146a951091588e5fa7e3c754850cb3c before 4665e52bde3b1f8f442895ce7d88fa62a43e48c4; from c8efcc786146a951091588e5fa7e3c754850cb3c before f416c556997aa56ec4384c6b6efd6a0e6ac70aa7; from 6.6.32 before 6.6.124; 6.9 (not affected: before 6.9; from 6.6.124 up to 6.6.*; from 6.12.70 up to 6.12.*; from 6.18.10 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.6.32 before 6.6.124; from 6.9 before 6.12.70; from 6.13 before 6.18.10; 6.19

## References

- <https://git.kernel.org/stable/c/2456fde2b137703328f1695f60c68fe488d17e36> (patch)
- <https://git.kernel.org/stable/c/39ca11ff158c98fb092176f06047628c54bcf7a1> (patch)
- <https://git.kernel.org/stable/c/4665e52bde3b1f8f442895ce7d88fa62a43e48c4> (patch)
- <https://git.kernel.org/stable/c/f416c556997aa56ec4384c6b6efd6a0e6ac70aa7> (patch)

## Sources

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

---

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