CVE-2023-1195

Source
https://cve.org/CVERecord?id=CVE-2023-1195
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-1195.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-1195
Downstream
AZL (1)
DEBIAN (1)
RHSA (7)
SUSE (1)
UBUNTU (1)
Related
Published
2023-05-18T00:00:00Z
Modified
2026-10-22T15:55:34Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "cna_assigner": "redhat",
    "cwe_ids": [
        "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/1xxx/CVE-2023-1195.json"
}
References

Affected packages

Git / github.com/torvalds/linux

Affected ranges

Type
GIT
Repo
https://github.com/torvalds/linux
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

prior to kernel 6.*
prior to kernel 6.1 rc3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-1195.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-10-22T15:55:34Z"