CVE-2024-47742 json
firmware_loader: Block path traversal
published 2024-10-21 2 y ago modified 2026-08-05 3 mo ago also EUVD-2024-42659
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
firmware_loader: Block path traversal
Most firmware names are hardcoded strings, or are constructed from fairly constrained format strings where the dynamic parts are just some hex numbers or such.
However, there are a couple codepaths in the kernel where firmware file names contain string components that are passed through from a device or semi-privileged userspace; the ones I could find (not counting interfaces that require root privileges) are:
- lpfc_sli4_request_firmware_update() seems to construct the firmware filename from "ModelName", a string that was previously parsed out of some descriptor ("Vital Product Data") in lpfc_fill_vpd() - nfp_net_fw_find() seems to construct a firmware filename from a model name coming from nfp_hwinfo_lookup(pf->hwinfo, "nffw.partno"), which I think parses some descriptor that was read from the device. (But this case likely isn't exploitable because the format string looks like "netronome/nic_%s", and there shouldn't be any *folders* starting with "netronome/nic_". The previous case was different because there, the "%s" is *at the start* of the format string.) - module_flash_fw_schedule() is reachable from the ETHTOOL_MSG_MODULE_FW_FLASH_ACT netlink command, which is marked as GENL_UNS_ADMIN_PERM (meaning CAP_NET_ADMIN inside a user namespace is enough to pass the privilege check), and takes a userspace-provided firmware name. (But I think to reach this case, you need to have CAP_NET_ADMIN over a network namespace that a special kind of ethernet device is mapped into, so I think this is not a viable attack path in practice.)
Fix it by rejecting any firmware names containing ".." path components.
For what it's worth, I went looking and haven't found any USB device drivers that use the firmware loader dangerously.
Patch / fix
- Linux Linux 4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54, 6.10.13, 6.11.2, 6.12
- linux Debian 12 6.1.115-1
- linux Debian 14, Debian 13 6.11.2-1
debian advisories DEBIAN-CVE-2024-47742
- linux Ubuntu 20.04 LTS 5.4.0-208.228
- linux Ubuntu 22.04 LTS 5.15.0-127.137
- linux Ubuntu 24.04 LTS 6.8.0-54.56
- linux-aws Ubuntu 20.04 LTS 5.4.0-1140.150
- linux-aws Ubuntu 22.04 LTS 5.15.0-1073.79
- linux-aws Ubuntu 24.04 LTS 6.8.0-1023.25
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1143.152
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1072.80
ubuntu advisories UBUNTU-CVE-2024-47742
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1.21.4
- kernel-livepatch-MICRO-6-0_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.2
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-livepatch-MICRO-6-0-RT_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.1
suse advisories SUSE-SU-2025:20164-1SUSE-SU-2025:20247-1SUSE-SU-2025:20163-1SUSE-SU-2025:20246-1SUSE-SU-2025:0034-1SUSE-SU-2024:4387-1
- kernel-source-longterm openSUSE Tumbleweed 6.12.11-1.1
- kernel-source openSUSE Tumbleweed 6.11.8-1.1
opensuse advisories openSUSE-SU-2025:14705-1openSUSE-SU-2024:14500-1
- kernel CBL-Mariner 2.0 5.15.173.1-1
- kernel Azure Linux 3.0 6.6.56.1-5
azure linux advisories AZL-50800AZL-51027
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/d1768e5535d3ded59f888637016e6f821f4e069f commit
- git.kernel.org/stable/c/9b1ca33ebd05b3acef5b976c04e5e791af93ce1b commit
- git.kernel.org/stable/c/c30558e6c5c9ad6c86459d9acce1520ceeab9ea6 commit
- git.kernel.org/stable/c/a77fc4acfd49fc6076e565445b2bc5fdc3244da4 commit
- git.kernel.org/stable/c/3d2411f4edcb649eaf232160db459bb4770b5251 commit
- git.kernel.org/stable/c/7420c1bf7fc784e587b87329cc6dfa3dca537aa4 commit
- git.kernel.org/stable/c/28f1cd94d3f1092728fb775a0fe26c5f1ac2ebeb commit
- git.kernel.org/stable/c/6c4e13fdfcab34811c3143a0a03c05fec4e870ec commit
- git.kernel.org/stable/c/f0e5311aa8022107d63c54e2f03684ec097d1394 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-47742 updated cvss 7.8
kernel: firmware_loader: Block path traversal
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-226-07 updated cvss 5.5
Siemens Third-Party Components in SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 3.2affected: fixed in V3.2 support.industry.siemens.com
-
Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family < 3.2affected: fixed in V3.2
-
Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family < 3.2affected: fixed in V3.2 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- Technology feeds
References
-
git.kernel.org
/stable/c/d1768e5535d3ded59f888637016e6f821f4e069f
patch
-
git.kernel.org
/stable/c/9b1ca33ebd05b3acef5b976c04e5e791af93ce1b
patch
-
git.kernel.org
/stable/c/c30558e6c5c9ad6c86459d9acce1520ceeab9ea6
patch
-
git.kernel.org
/stable/c/a77fc4acfd49fc6076e565445b2bc5fdc3244da4
patch
-
git.kernel.org
/stable/c/3d2411f4edcb649eaf232160db459bb4770b5251
patch
-
git.kernel.org
/stable/c/7420c1bf7fc784e587b87329cc6dfa3dca537aa4
patch
-
git.kernel.org
/stable/c/28f1cd94d3f1092728fb775a0fe26c5f1ac2ebeb
patch
-
git.kernel.org
/stable/c/6c4e13fdfcab34811c3143a0a03c05fec4e870ec
patch
-
git.kernel.org
/stable/c/f0e5311aa8022107d63c54e2f03684ec097d1394
patch
-
lists.debian.org
/debian-lts-announce/2025/03/msg00002.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2025/01/msg00001.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2024-47742
- NVD CVE-2024-47742
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.