{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-98172",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.322Z",
        "datePublished": "2026-10-06T08:44:16.721Z",
        "dateUpdated": "2026-10-19T09:15:03.619Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-10-19T09:15:03.619Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix smbd_connection leak on cifs_get_tcp_session() error\n\nWhen an RDMA connection is successfully established via\nsmbd_get_connection() but cifs_get_tcp_session() later fails (e.g.\nkthread_create() returns an error), the error path frees tcp_ses\nwithout first destroying the smbd_connection.\n\nFix this by calling smbd_destroy() in the out_err cleanup path before\nkfree(tcp_ses).  smbd_destroy() safely handles the case where\nsmbd_conn is NULL, so it can be called unconditionally."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/client/connect.c"
                    ],
                    "versions": [
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "3164402c58940ff58a3cecdb026405f07b0253af",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "e3344bb0ff5ec8a276f42239e140f5442841ef23",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "5c908e49d349266dff0c86dda6a05df0ff19b824",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "928edc4bd6a617caabeb575fc13c254d9df623c4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "b26a3fcf2f1c2cadba400290b639f01395db8fc8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f8946464b11822169b9f10c7cf58a2440b51d54",
                            "lessThan": "e75c96157d45e498970158c8f7373d90102e33b9",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/client/connect.c"
                    ],
                    "versions": [
                        {
                            "version": "4.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.189",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.158",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.112",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.54",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2.8",
                            "lessThanOrEqual": "7.2.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.1.189"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.6.158"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.12.112"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "6.18.54"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.2.8"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.16",
                                    "versionEndExcluding": "7.3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3164402c58940ff58a3cecdb026405f07b0253af"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e3344bb0ff5ec8a276f42239e140f5442841ef23"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5c908e49d349266dff0c86dda6a05df0ff19b824"
                },
                {
                    "url": "https://git.kernel.org/stable/c/928edc4bd6a617caabeb575fc13c254d9df623c4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b26a3fcf2f1c2cadba400290b639f01395db8fc8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e75c96157d45e498970158c8f7373d90102e33b9"
                }
            ],
            "title": "smb: client: fix smbd_connection leak on cifs_get_tcp_session() error",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}