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.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/1xxx/CVE-2023-1195.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "prior to kernel 6.1 rc3"
},
{
"last_affected": "prior to kernel 6.1 rc3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "153695d36ead0ccc4d0256953c751cabf673e621"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-1195.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "194690203964826457721607720254159843438",
"length": 921
},
"id": "CVE-2023-1195-351c6534",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621",
"target": {
"file": "fs/cifs/connect.c",
"function": "cifs_put_tcp_session"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"173956419972832208162509469679097877097",
"63759140553960960487632636716906850614",
"5647248873069855163268822903456449097",
"265160484926038134974602322313145355742"
],
"threshold": 0.9
},
"id": "CVE-2023-1195-effd1c3b",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621",
"target": {
"file": "fs/cifs/connect.c"
}
}
]
"2026-10-16T09:02:56Z"