{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99539",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.420Z",
        "datePublished": "2026-11-19T14:44:54.387Z",
        "dateUpdated": "2026-11-23T08:04:03.060Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:04:03.060Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix session reference leak on compounded SESSION_SETUP\n\nA compound request can place SESSION_SETUP after another command. That\nearlier command leaves a reference to its session in work->sess.\nsmb2_sess_setup() then overwrites work->sess with the session it looks up\nor creates, and the dispatcher later puts work->sess only once. The\ninherited reference is never dropped. That leaks the session, together\nwith its setup connection and socket, and every repeat of the compound\nleaks another.\n\n  unreferenced object (size 512):\n    __kmalloc_cache_noprof+0x32c/0x3a0\n    ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd]\n    smb2_sess_setup+0xda4/0x6280 [ksmbd]\n    handle_ksmbd_work+0x88c/0x1cb0 [ksmbd]\n\nSave the inherited session on entry. After the request has been\nprocessed, release it once, but only when smb2_sess_setup() has replaced\nwork->sess with its own session or cleared it. Do this after\nksmbd_conn_unlock() so the put does not run under srv_mutex. An error path\nmay instead leave the inherited session in work->sess. Keep it there, so\nthe dispatcher still puts it and the error response is still signed or\nencrypted with it as before."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smb2pdu.c"
                    ],
                    "versions": [
                        {
                            "version": "0f62358ce85b2d4c949ef1b648be01b29cec667a",
                            "lessThan": "a259b8f25de7b50d43fb94b29489d98848bba580",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a9839c37fd813b432988f58a9d9dd59253d3eb2c",
                            "lessThan": "964c39f41c837fc2de221dcb860ff6451e17deae",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5511999e9615e4318e9142d23b29bd1597befc08",
                            "lessThan": "84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                            "lessThan": "b2d710b12e86fd4cf02be090651fa6ea8683fc29",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                            "lessThan": "38cddb9f7c9102f23652d198748c658072cf0df5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                            "lessThan": "db30f8f330fc73304edfe595dc5a6f5e17ba97f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7aa8804c0b67b3cb263a472d17f2cb50d7f1a930",
                            "lessThan": "03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ee371898b53a9b9b51c02d22a8c31bfb86d45f0d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.15.171",
                            "lessThan": "5.15.226",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.114",
                            "lessThan": "6.1.193",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.58",
                            "lessThan": "6.6.163",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11.5",
                            "lessThan": "6.12",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/server/smb2pdu.c"
                    ],
                    "versions": [
                        {
                            "version": "6.12",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.61",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.2",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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": "5.15.171",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.114",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.58",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.11.5"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580"
                },
                {
                    "url": "https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae"
                },
                {
                    "url": "https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29"
                },
                {
                    "url": "https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65"
                }
            ],
            "title": "ksmbd: fix session reference leak on compounded SESSION_SETUP",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}