{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-56651",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-12-27T15:00:39.841Z",
        "datePublished": "2024-12-27T15:02:50.759Z",
        "dateUpdated": "2026-08-05T11:45:48.882Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:45:48.882Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: hi311x: hi3110_can_ist(): fix potential use-after-free\n\nThe commit a22bd630cfff (\"can: hi311x: do not report txerr and rxerr\nduring bus-off\") removed the reporting of rxerr and txerr even in case\nof correct operation (i. e. not bus-off).\n\nThe error count information added to the CAN frame after netif_rx() is\na potential use after free, since there is no guarantee that the skb\nis in the same state. It might be freed or reused.\n\nFix the issue by postponing the netif_rx() call in case of txerr and\nrxerr reporting."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:A - The vulnerable path is driven by CAN bus error-state transitions (ERROR_WARNING/ERROR_PASSIVE), which any node sharing the physical CAN segment can force by injecting dominant bits or malformed/unacknowledged frames. CAN is a bounded shared bus, matching the CVSS \"logically adjacent topology\" definition rather than routable Network.\nAC:L - The free is deterministic, not a race — in threaded-IRQ context netif_rx() drains NET_RX_SOFTIRQ inline via local_bh_enable(), so process_backlog() consumes and frees the skb before netif_rx() returns, and the driver then unconditionally writes through the stale cf pointer. Driving TEC/REC across the error-warning/passive thresholds is entirely under the bus attacker's control and repeatable.\nPR:N - CAN provides no authentication, addressing, or access control; a peer node needs no credentials or account on the target system to inject the error conditions that trigger the path. The code path is also not gated by any ctrlmode flag or capability check.\nUI:N - No victim action is required — the CAN interface being up is normal operational state for a deployed device, and the interrupt handler runs automatically on controller error signalling.\nS:U - The use-after-free corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The freed skb buffer is immediately recycled, so subsequent kernel data can occupy it while a socket may still hold references to the corrupted frame, and UAF-corrupted skb metadata can be leveraged to disclose adjacent kernel heap contents.\nI:H - This is a use-after-free write: a bit-set at offset 0 plus two bytes at offsets 14/15 of the freed allocation, with values (txerr/rxerr) the bus attacker influences, repeatable on every error-state transition — a heap-grooming-friendly write primitive into reallocated kernel objects.\nA:H - Writing into freed and reallocated slab memory corrupts unrelated kernel structures, causing oops, slab corruption, or panic, and the trigger can be repeated indefinitely from the bus."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/can/spi/hi311x.c"
                    ],
                    "versions": [
                        {
                            "version": "a22bd630cfff496b270211745536e50e98eb3a45",
                            "lessThan": "4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a22bd630cfff496b270211745536e50e98eb3a45",
                            "lessThan": "1128022009444faf49359bd406cd665b177cb643",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a22bd630cfff496b270211745536e50e98eb3a45",
                            "lessThan": "bc30b2fe8c54694f8ae08a5b8a5d174d16d93075",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a22bd630cfff496b270211745536e50e98eb3a45",
                            "lessThan": "9ad86d377ef4a19c75a9c639964879a5b25a433b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "303733fdab728d34708014b3096dc69ebae6e531",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "410054f1cf75378a6f009359e5952a240102a1a2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "d20bf7e76136fd4c1e47502a1f5773f2290013ed",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "22e382d47de09e865a9214cc5c9f99256e65deaa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "330b0ac34beec4fef8b002549af5bc6d0b6f0836",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f3d865a6b791abbc874739ed702ae64ad2607511",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4.14.291",
                            "lessThan": "4.15",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.256",
                            "lessThan": "4.20",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.211",
                            "lessThan": "5.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.137",
                            "lessThan": "5.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.61",
                            "lessThan": "5.16",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.18",
                            "lessThan": "5.19",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.2",
                            "lessThan": "5.20",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/can/spi/hi311x.c"
                    ],
                    "versions": [
                        {
                            "version": "6.0",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.0",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.120",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.66",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.5",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.13",
                            "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.0",
                                    "versionEndExcluding": "6.1.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "6.6.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "6.12.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.0",
                                    "versionEndExcluding": "6.13"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14.291"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.19.256"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4.211"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.137"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.18.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1128022009444faf49359bd406cd665b177cb643"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bc30b2fe8c54694f8ae08a5b8a5d174d16d93075"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9ad86d377ef4a19c75a9c639964879a5b25a433b"
                }
            ],
            "title": "can: hi311x: hi3110_can_ist(): fix potential use-after-free",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-56651",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2025-02-11T15:41:42.778830Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-02-11T15:45:21.578Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T20:51:58.194Z"
                }
            }
        ]
    }
}