CVE-2024-56603: net: af_can: do not leave a dangling sk pointer in can_create()
In the Linux kernel, the following vulnerability has been resolved:
net: af_can: do not leave a dangling sk pointer in can_create()
On error can_create() frees the allocated sk object, but sock_init_data()
has already attached it to the provided sock object. This will leave a
dangling sk pointer in the sock object and may cause use-after-free later.
Security readout for executives and security teams
Plain-English summary
A Linux kernel error can leave behind a pointer to freed memory while creating a CAN socket. A local, low-privileged attacker may be able to trigger later memory misuse, potentially compromising confidentiality, integrity, or availability. The supplied CVSS score is 7.8 (High).
Executive priority
Treat as an expedited kernel-maintenance issue, especially on multi-user systems or hosts running untrusted local workloads. It is high severity but not evidenced as remotely reachable or actively exploited. Confirm exposure promptly, deploy supported updates through normal change controls, and verify the corrected kernel is active.
Technical view
In can_create(), an error path frees the allocated socket structure after sock_init_data() has attached it to the caller-provided socket. The remaining dangling sk pointer can later cause a use-after-free (CWE-416). The supplied vector indicates local access, low complexity, low privileges, no user interaction, and potentially high impact.
Likely exposure
Exposure is limited to Linux systems running an affected kernel and presenting the vulnerable AF_CAN socket-creation path to local users or processes. The supplied version data is ambiguous and should not be used alone for fleet decisions; verify each distribution kernel against vendor advisories and backported fixes.
Exploitation context
The supplied record does not list this CVE in CISA KEV and provides no evidence of active exploitation or a public exploit. CVSS describes a local, low-privileged attack scenario. The sources do not establish practical exploit reliability or whether additional system conditions are required.
Researcher notes
The core defect is lifetime inconsistency between sock->sk and the freed sk object on can_create() failure. Analysis should focus on affected vendor backports, error-path reachability, and subsequent dereferences. The bundle confirms remediation through upstream stable commits, but it does not document trigger prerequisites, exploitation reliability, or observed attacks.
Mitigation direction
Install the distribution-supported kernel update that incorporates the applicable upstream stable fix.
Reboot into the updated kernel, following the distribution's operational guidance.
Prioritize systems allowing untrusted or numerous local users and workloads.
Check Linux and distribution advisories for backport status before relying on version numbers alone.
Validation and detection
Record the running kernel release and distribution package revision on every Linux asset.
Map package revisions to vendor advisories or the cited upstream stable fixes.
Confirm the updated kernel is running after reboot, not merely installed.
Review local access exposure and whether AF_CAN functionality is available to untrusted processes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
2ADP providers
10Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.