Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-39495

published high CVSS 3.1 · 7.8

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

Published
12 Jul 2024, 12:20:31 UTC
Updated
05 Aug 2026, 11:33:44 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 74cd0a421896b2e07eafe7da4275302bfecef201 · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83 · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < fb071f5c75d4b1c177824de74ee75f9dd34123b9 · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 9a733d69a4a59c2d08620e6589d823c24be773dc · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 0b8fba38bdfb848fac52e71270b2aa3538c996ea · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 03ea2b129344152157418929f06726989efc0445 · 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.9 (affected) · 0 to < 4.9 (unaffected · semver) · 5.4.279 through 5.4.* (unaffected · semver) · 5.10.221 through 5.10.* (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.95 through 6.1.* (unaffected · semver) · 6.6.35 through 6.6.* (unaffected · semver) · 6.9.6 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
linux — linux_kernel0 to < 74cd0a421896 · 1da177e4c3f4 to < 2b6bb0b4abfd · 1da177e4c3f4 to < fb071f5c75d4 · 1da177e4c3f4 to < 9a733d69a4a5 · 1da177e4c3f4 to < 0b8fba38bdfb · 1da177e4c3f4 to < 03ea2b129344 · 1da177e4c3f4 to < 5c9c5d7f26ac · Other versions: unaffected Affected Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
Oracle Linux 7 kernel-uekaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Ubuntu bionic block-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Debian bullseye linux Advisory build 5.10.221-1 DSA-5730-1
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.335.4.el7 ELSA-2024-12612
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el7 ELSA-2024-12612
Oracle Linux 7 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-toolsaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 kernel-uek-tools-libsaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 perfaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 7 python-perfaarch64 Advisory build 0:5.4.17-2136.335.4.el7uek ELSA-2024-12610
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.335.4.el8 ELSA-2024-12612
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el8 ELSA-2024-12612
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.335.4.el8uek ELSA-2024-12610
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Ubuntu bionic block-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2
Ubuntu bionic crypto-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Ubuntu bionic crypto-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2
Ubuntu bionic dasd-extra-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Ubuntu bionic dasd-extra-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2
Ubuntu bionic dasd-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Ubuntu bionic dasd-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2
Ubuntu bionic fat-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Ubuntu bionic fat-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2
Ubuntu bionic fb-modules-4.15.0-229-generic-di Advisory build 4.15.0-229.241 USN-7028-1
Ubuntu bionic fb-modules-5.4.0-195-generic-di Advisory build 5.4.0-195.215~18.04.1 USN-7003-2

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

33

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The attacker-controlled side of the race is the FW_MGMT_IOC_MODE_SWITCH ioctl on the /dev/gb-fw-mgmt-N character device (drivers/staging/greybus/fw-management.c:503), the sole caller of gb_interface_request_mode_switch(). Greybus is a local bus (USB/UART/serdev transport), not remotely reachable, so exploitation requires local access to the system. AC:L - The attacker directly controls the work-queueing side via the ioctl and can retry it in a tight loop indefinitely, while the free side (interface refcount drop via module removal / SVC teardown) can be induced repeatedly by hot-unplug or the 2-second mode-switch timeout path that calls gb_interface_deactivate(). Heap grooming of the ~1KB gb_interface allocation is standard, so the attacker creates and wins the race himself rather than depending on conditions outside his control. PR:L - fw_mgmt_ioctl() and fw_mgmt_ioctl_unlocked() contain no capable() or CAP_* check at all; the only gate is the permission on the /dev/gb-fw-mgmt-N node, which on greybus-based embedded/mobile deployments is routinely granted to a non-root firmware-management service or group. An unprivileged user holding a descriptor to that node can drive the entire path. UI:N - No victim action is needed — the attacker issues the ioctl himself, and the freeing side is driven by SVC module-removed events or the mode-switch timeout that the attacker can provoke. No file must be opened and no filesystem mounted by another user. S:U - The use-after-free corrupts kernel heap memory and is exploited within the same kernel security authority; there is no hypervisor, IOMMU, or sandbox boundary crossed. This is standard local kernel privilege escalation. C:H - The freed gb_interface can be reclaimed and sprayed by the attacker, after which gb_interface_mode_switch_work() reads intf->control, intf->enabled and walks intf->bundles, giving a controlled-pointer dereference usable as an arbitrary kernel-memory read primitive. Full disclosure of kernel memory, including credentials and KASLR-defeating pointers, is achievable. I:H - mutex_lock(&intf->mutex) on the freed object writes into attacker-controlled reclaimed memory, and gb_bundle_destroy() iterating the stale intf->bundles list performs list-unlink writes through attacker-supplied pointers. These are classic UAF write primitives that can be escalated to control-flow hijack and full kernel compromise. A:H - Even without successful reclaim, the work item dereferences and takes a mutex on freed memory, producing a kernel oops or panic. Any use-after-free of this kind reliably crashes the system, and the ioctl can be repeated to trigger it at will.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 74cd0a421896b2e07eafe7da4275302bfecef201 (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83 (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < fb071f5c75d4b1c177824de74ee75f9dd34123b9 (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 9a733d69a4a59c2d08620e6589d823c24be773dc (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 0b8fba38bdfb848fac52e71270b2aa3538c996ea (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 03ea2b129344152157418929f06726989efc0445 (affected · git)55742d2a071a569bf20f90d37b1b5b8a25a3f882 to < 5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce (affected · git)Default: unaffected Linux · cna
Linux Linux 4.9 (affected)0 to < 4.9 (unaffected · semver)5.4.279 through 5.4.* (unaffected · semver)5.10.221 through 5.10.* (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.95 through 6.1.* (unaffected · semver)6.6.35 through 6.6.* (unaffected · semver)6.9.6 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
linux linux_kernel 0 to < 74cd0a421896 (affected · git)1da177e4c3f4 to < 2b6bb0b4abfd (affected · git)1da177e4c3f4 to < fb071f5c75d4 (affected · git)1da177e4c3f4 to < 9a733d69a4a5 (affected · git)1da177e4c3f4 to < 0b8fba38bdfb (affected · git)1da177e4c3f4 to < 03ea2b129344 (affected · git)1da177e4c3f4 to < 5c9c5d7f26ac (affected · git)Default: unaffected CISA-ADP · adp

Weaknesses

1
  • CWE-416 CWE-416 Use After Free (CISA-ADP · adp)

References

8

Provider assertions

3

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
174213eb3792067d711b38fc8ad48c9b168a057cbecfe133188041dcdd544f38
Ingested
23 Sep 2026, 08:25:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected