CVE-2024-49983
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.115-126.197.amzn2023 |
| python3-perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| bpftool | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.115-126.197.amzn2023 |
| linux_kernel | linux | 6.11.3, 6.10.14, 6.6.55, 6.1.113, 5.15.168, 5.10.227 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 |
| Linux | Linux | 5.10, 0, 5.10.227 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 5.10, 5.10, 5.10 |
| Linux | Linux | 6.12, 6.6.55, 6.10.14 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | perf | 0 |
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