CVE-2024-41014
xfs: add bounds checking to xlog_recover_process_data
Reported by linux · Published July 29, 2024
In the Linux kernel, the following vulnerability has been resolved: xfs: add bounds checking to xlog_recover_process_data There is a lack of verification of the space occupied by fixed members of xlog_op_header in the xlog_recover_process_data. We can create a crafted image to trigger an out of bounds read by following these steps: 1) Mount an image of xfs, and do some file operations to leave records 2) Before umounting, copy the image for subsequent steps to simulate abnormal exit. Because umount will ensure that tail_blk and head_blk are the same, which will result in the inability to enter xlog_recover_process_data 3) Write a tool to parse and modify the copied image in step 2 4) Make the end of the xlog_op_header entries only 1 byte away from xlog_rec_header->h_size 5) xlog_rec_header->h_num_logops++ 6) Modify xlog_rec_header->h_crc Fix: Add a check to make sure there is sufficient space to access fixed members of xlog_op_header.
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-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| python3-perf | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-livepatch-6.1.124-134.200 | Amazon Linux | 1.0-0.amzn2023 |
| bpftool | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.124-134.200.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Linux | Linux | 2.6.12, 0, 6.1.120 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.1.124-134.200 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf | 0 |
| linux | linux_kernel | 2.6.12, 2.6.12, 2.6.12 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
Timeline
- Jul 28, 2024 CVE Published
- Jul 29, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (15 in total, the first dated here)
- Jan 7, 2026 Security Advisory (164 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (156 in total, the first dated here)
- Aug 4, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-41014
vulnetix vdb fixes CVE-2024-41014
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-41014/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart