A use-after-free flaw was found in reconnsetipaddrfromhostname 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.
[
{
"digest": {
"length": 921.0,
"function_hash": "194690203964826457721607720254159843438"
},
"source": "https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621",
"deprecated": false,
"id": "CVE-2023-1195-351c6534",
"signature_type": "Function",
"target": {
"function": "cifs_put_tcp_session",
"file": "fs/cifs/connect.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"173956419972832208162509469679097877097",
"63759140553960960487632636716906850614",
"5647248873069855163268822903456449097",
"265160484926038134974602322313145355742"
]
},
"source": "https://github.com/torvalds/linux/commit/153695d36ead0ccc4d0256953c751cabf673e621",
"deprecated": false,
"id": "CVE-2023-1195-effd1c3b",
"signature_type": "Line",
"target": {
"file": "fs/cifs/connect.c"
},
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-1195.json"