# CVE-2023-1195: A use-after-free flaw was found in reconnsetipaddrfromhostname in fs/cifs/connect.c in the Linux kernel.

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2023-05-18T00:00:00.000Z
- Modified: 2026-06-17T05:27:20.000Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A use-after-free flaw was found in reconn_set_ipaddr_from_hostname in fs/cifs/connect.c in the Linux kernel. The issue occurs when it forgets to set the free pointer server->hostname to NULL, leading to an invalid pointer request.

(As written by CVE List.)

## Affected

- Kernel: prior to kernel 6.1 rc3
- linux linux_kernel: before 6.1; 6.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-1195 · Whole record: https://cve.day/CVE-2023-1195.json · Rebuilt by cve.day 2026-11-25T22:58:24.272Z
