Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-39495

HIGH 7.8EPSS 22%

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

Mitigation

  • Upgrade Linux to 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce or later.

Who should check

  • Anyone running Linux >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 74cd0a421896b2e07eafe7da4275302bfecef201; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < fb071f5c75d4b1c177824de74ee75f9dd34123b9; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 9a733d69a4a59c2d08620e6589d823c24be773dc; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 0b8fba38bdfb848fac52e71270b2aa3538c996ea; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 03ea2b129344152157418929f06726989efc0445; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce
  • Anyone running Linux 4.9

Vulnerability facts

Affected
Linux >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 74cd0a421896b2e07eafe7da4275302bfecef201; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < fb071f5c75d4b1c177824de74ee75f9dd34123b9; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 9a733d69a4a59c2d08620e6589d823c24be773dc; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 0b8fba38bdfb848fac52e71270b2aa3538c996ea; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 03ea2b129344152157418929f06726989efc0445; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce; Linux 4.9
Fixed in
Linux 74cd0a421896b2e07eafe7da4275302bfecef201, Linux 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83, Linux 9a733d69a4a59c2d08620e6589d823c24be773dc, Linux 0b8fba38bdfb848fac52e71270b2aa3538c996ea, Linux 03ea2b129344152157418929f06726989efc0445, Linux 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.36% chance of exploitation in 30 days (percentile 22, 2026-11-26)
CWE
CWE-416
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 74cd0a421896b2e07eafe7da4275302bfecef201; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < fb071f5c75d4b1c177824de74ee75f9dd34123b9; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 9a733d69a4a59c2d08620e6589d823c24be773dc; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 0b8fba38bdfb848fac52e71270b2aa3538c996ea; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 03ea2b129344152157418929f06726989efc0445; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce—cvelist
Linux4.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-39495. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39495.md
Affected: Linux >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 74cd0a421896b2e07eafe7da4275302bfecef201; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < fb071f5c75d4b1c177824de74ee75f9dd34123b9; >= 55742d2a071a569bf20f90d…
Fixed in: Linux 74cd0a421896b2e07eafe7da4275302bfecef201, Linux 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83, Linux 9a733d69a4a59c2d08620e6589d823c24be773dc, Linux 0b8fba38bdfb848fac52e71270b2aa3538c996ea, Linux 03ea2b129344152157418929f06726989efc0445, Linux 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-39495 being exploited?

There is no confirmed exploitation: CVE-2024-39495 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-39495?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-39495?

Linux >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 74cd0a421896b2e07eafe7da4275302bfecef201; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < fb071f5c75d4b1c177824de74ee75f9dd34123b9; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 9a733d69a4a59c2d08620e6589d823c24be773dc; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 0b8fba38bdfb848fac52e71270b2aa3538c996ea; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 03ea2b129344152157418929f06726989efc0445; >= 55742d2a071a569bf20f90d37b1b5b8a25a3f882, < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce; Linux 4.9.

Is there a fix for CVE-2024-39495?

Yes. Fixed in Linux 74cd0a421896b2e07eafe7da4275302bfecef201, Linux 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83, Linux 9a733d69a4a59c2d08620e6589d823c24be773dc, Linux 0b8fba38bdfb848fac52e71270b2aa3538c996ea, Linux 03ea2b129344152157418929f06726989efc0445, Linux 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce. Upgrade Linux to 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce or later.

How do I check if I'm affected by CVE-2024-39495?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors