LiveActive security incident?Get immediate response
CVE Record

CVE-2024-39495: greybus: Fix use-after-free bug in gb_interface_release due to race condition.

In the Linux kernel, the following vulnerability has been resolved: greybus: Fix use-after-free bug in gb_interface_release due to race condition. In gb_interface_create, &intf->mode_switch_completion is bound with gb_interface_mode_switch_work. Then it will be started by gb_interface_request_mode_switch. Here is the relevant code. if (!queue_work(system_long_wq, &intf->mode_switch_work)) { ... } If we call gb_interface_release to make cleanup, there may be an unfinished work. This function will call kfree to free the object "intf". However, if gb_interface_mode_switch_work is scheduled to run after kfree, it may cause use-after-free error as gb_interface_mode_switch_work will use the object "intf". The possible execution flow that may lead to the issue is as follows: CPU0 CPU1 | gb_interface_create | gb_interface_request_mode_switch gb_interface_release | kfree(intf) (free) | | gb_interface_mode_switch_work | mutex_lock(&intf->mutex) (use) Fix it by canceling the work before kfree.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A race in the Linux kernel’s Greybus interface cleanup can leave background work using memory after it has been freed. A local, low-privileged attacker may potentially cause a crash or compromise confidentiality and integrity, but the supplied sources do not demonstrate successful exploitation.

Executive priority

Schedule prompt remediation for systems using Greybus, especially those allowing untrusted local users. Treat general-purpose systems without active Greybus use as lower practical exposure after validation. This is high severity, but the supplied evidence does not support emergency treatment based on active exploitation.

Technical view

The Greybus mode-switch worker retains access to the interface object. During a timing race, gb_interface_release can free that object before the queued worker runs, producing a CWE-416 use-after-free. The kernel fix cancels pending mode-switch work before freeing the object. CVSS 3.1 is 7.8 with local access and low privileges required.

Likely exposure

Exposure is most likely where an affected Linux kernel includes and actively uses Greybus interface mode switching. The supplied version data identifies affected releases from 4.9 through 6.10, with several fixed stable releases listed. Confirm status against the exact distribution kernel because backports can change vulnerability status.

Exploitation context

The CVSS vector requires local access and low privileges, with no user interaction. Exploitation depends on winning a cleanup-versus-worker timing race. The bundle marks this CVE as absent from KEV and provides no evidence of active exploitation or a public exploit.

Researcher notes

The failure window is between freeing the Greybus interface in gb_interface_release and later execution of gb_interface_mode_switch_work, which accesses the freed object’s mutex. Stable fixes cancel outstanding work before kfree. The supplied affected-version list contains ambiguous entries, including “0” and repeated commit identifiers; use branch-specific commits or distribution advisories for authoritative mapping.

Mitigation direction

  • Install a vendor-supported kernel containing the applicable stable fix.
  • Prioritize systems that include and actively use Greybus interfaces.
  • Consult the Linux distribution’s advisory for exact fixed package versions.
  • Restrict untrusted local access until affected systems are updated.

Validation and detection

  • Record each system’s exact kernel and distribution package version.
  • Check whether Greybus support is built, loaded, or operationally used.
  • Compare kernel provenance against the cited stable fixes or vendor backports.
  • Confirm the updated kernel is running after installation and reboot.
  • Monitor kernel logs for crashes or memory-safety reports involving Greybus.
Prepared
Confidence
medium
Sources
10

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-39495 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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
9Source 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.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Linux
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2024-39495Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CVECVE Program Container
CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882, 55742d2a071a569bf20f90d37b1b5b8a25a3f882unaffected
LinuxLinux4.9, 0, 5.4.279, 5.10.221, 5.15.162, 6.1.95, 6.6.35, 6.9.6, 6.10affected
Weakness

CWE details

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.