VDB

CVE-2024-49983

CVE-2024-49983 PUBLISHED CVSS 7.8 HIGH

ext4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free

Reported by linux · Published October 21, 2024

In the Linux kernel, the following vulnerability has been resolved: ext4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free When calling ext4_force_split_extent_at() in ext4_ext_replay_update_ex(), the 'ppath' is updated but it is the 'path' that is freed, thus potentially triggering a double-free in the following process: ext4_ext_replay_update_ex ppath = path ext4_force_split_extent_at(&ppath) ext4_split_extent_at ext4_ext_insert_extent ext4_ext_create_new_leaf ext4_ext_grow_indepth ext4_find_extent if (depth > path[0].p_maxdepth) kfree(path) ---> path First freed *orig_path = path = NULL ---> null ppath kfree(path) ---> path double-free !!! So drop the unnecessary ppath and use path directly to avoid this problem. And use ext4_find_extent() directly to update path, avoiding unnecessary memory allocation and freeing. Also, propagate the error returned by ext4_find_extent() instead of using strange error codes.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpfAmazon Linux6.1.115-126.197.amzn2023
kernel-develAmazon Linux6.1.115-126.197.amzn2023
kernelAmazon Linux6.1.115-126.197.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.115-126.197.amzn2023
python3-perfAmazon Linux6.1.115-126.197.amzn2023
kernel-headersAmazon Linux6.1.115-126.197.amzn2023
kernel-modules-extraAmazon Linux6.1.115-126.197.amzn2023
kernel-tools-develAmazon Linux6.1.115-126.197.amzn2023
bpftoolAmazon Linux6.1.115-126.197.amzn2023
kernel-libbpf-staticAmazon Linux6.1.115-126.197.amzn2023
kernel-toolsAmazon Linux6.1.115-126.197.amzn2023
linux_kernellinux6.11.3, 6.10.14, 6.6.55, 6.1.113, 5.15.168, 5.10.227

Risk scores

CVSS 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

VendorProductVersions
LinuxLinux8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2
LinuxLinux5.10, 0, 5.10.227
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf0
amazon:2023kernel-headers0
amazon:2023kernel-modules-extra0
amazon:2023kernel-tools-devel0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-tools0
linuxlinux_kernel5.10, 5.10, 5.10
LinuxLinux6.12, 6.6.55, 6.10.14
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-livepatch-6.1.115-126.1970
amazon:2023perf0

Timeline

  • Oct 21, 2024 CVE Published
  • Oct 22, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 23, 2024 Coalition ESS Score (12 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 2, 2026 Security Advisory (449 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (381 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-49983
vulnetix vdb fixes CVE-2024-49983

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49983/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›