{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-46736",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-09-11T15:12:18.257Z",
        "datePublished": "2024-09-18T07:11:58.499Z",
        "dateUpdated": "2026-08-05T11:38:12.776Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:38:12.776Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix double put of @cfile in smb2_rename_path()\n\nIf smb2_set_path_attr() is called with a valid @cfile and returned\n-EINVAL, we need to call cifs_get_writable_path() again as the\nreference of @cfile was already dropped by previous smb2_compound_op()\ncall."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The vulnerable retry path in smb2_rename_path() is entered only when compound_send_recv() maps the server's STATUS_INVALID_PARAMETER response to -EINVAL, so a malicious/compromised SMB server or a network MITM (the Linux cifs client does not mandate signing/encryption) fully controls whether the double put occurs. This is remote-peer data driving kernel memory management on the client.\nAC:L - The server simply answers a compounded CREATE+SET_INFO(rename) with STATUS_INVALID_PARAMETER — deterministic, no race to win, no memory-layout guessing, and leases are enabled by default. The same condition even arises reliably against benign servers for hardlinked files, which is precisely the case the introducing commit describes.\nPR:N - The attacker is the remote SMB endpoint and needs no account, credentials, or privileges on the victim client; the client initiates and authenticates the connection itself and then processes the poisoned status code during a routine rename of an open file.\nUI:N - No human action is required — renames of files held open on an SMB mount are ordinary automated activity (backup/sync daemons, log rotation, package and build tooling), so the attacker-controlled server merely waits for one and replies with STATUS_INVALID_PARAMETER.\nS:U - The corruption is confined to the client kernel's own heap and security authority; no VM, hypervisor, or IOMMU boundary is crossed.\nC:H - The premature free leaves file->private_data dangling and smb2_compound_op() kstrdup()s cfile->symlink_target out of freed memory into data returned to userspace, and a reclaimed cifsFileInfo yields a general arbitrary kernel-heap read primitive.\nI:H - The freed cifsFileInfo contains three list_heads whose later list_del gives an arbitrary write, plus four work_struct/delayed_work members with func pointers that can be queued after slab reclaim for control-flow hijack, making this a full write/code-execution primitive.\nA:H - The refcount underflow frees the handle while the fd remains open, so the next read/write or close on that fd hits freed memory, causing list corruption, a double free, and a kernel oops/panic."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/smb/client/smb2inode.c"
                    ],
                    "versions": [
                        {
                            "version": "1e60bc0e954389af82f1d9a85f13a63f6572350f",
                            "lessThan": "b27ea9c96efd2c252a981fb00d0f001b86c90f3e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "71f15c90e785d1de4bcd65a279e7256684c25c0d",
                            "lessThan": "1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "71f15c90e785d1de4bcd65a279e7256684c25c0d",
                            "lessThan": "3523a3df03c6f04f7ea9c2e7050102657e331a4f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.6.32",
                            "lessThan": "6.6.51",
                            "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/client/smb2inode.c"
                    ],
                    "versions": [
                        {
                            "version": "6.9",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.9",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.51",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10.10",
                            "lessThanOrEqual": "6.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11",
                            "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": "6.6.32",
                                    "versionEndExcluding": "6.6.51"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.9",
                                    "versionEndExcluding": "6.10.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.9",
                                    "versionEndExcluding": "6.11"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b27ea9c96efd2c252a981fb00d0f001b86c90f3e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1a46c7f6546b73cbf36f5a618a1a6bbb45391eb3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3523a3df03c6f04f7ea9c2e7050102657e331a4f"
                }
            ],
            "title": "smb: client: fix double put of @cfile in smb2_rename_path()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-29T14:52:47.842995Z",
                                "id": "CVE-2024-46736",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-29T14:53:02.091Z"
                }
            }
        ]
    }
}