CVE-2024-50131
tracing: Consider the NULL character when validating the event length
Reported by linux · Published November 5, 2024
In the Linux kernel, the following vulnerability has been resolved: tracing: Consider the NULL character when validating the event length strlen() returns a string length excluding the null byte. If the string length equals to the maximum buffer length, the buffer will have no space for the NULL terminating character. This commit checks this condition and returns failure for it.
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-headers | Amazon Linux | 6.1.115-126.197.amzn2023 |
| perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| bpftool | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-livepatch-6.1.115-126.197 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| Linux | Linux | f4ed40d1c669bba1a54407d8182acdc405683f29, 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7, 5e3231b352725ff4a3a0095e6035af674f2d8725, 02874ca52df2ca2423ba6122039315ed61c25972 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | dec65d79fd269d05427c8167090bfc9c3d0b56c4, dec65d79fd269d05427c8167090bfc9c3d0b56c4, dec65d79fd269d05427c8167090bfc9c3d0b56c4 |
| Linux | Linux | 5.1, 0, 5.4.285 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.115-126.197 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Linux | Linux | *, *, * |
| linux | linux_kernel | 5.1, 5.1, 5.1 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel | 0 |
Timeline
- Nov 5, 2024 CVE Published
- Nov 6, 2024 EPSS Score (30 in total, the first dated here)
- Nov 6, 2024 Coalition ESS Score (11 in total, the first dated here)
- Jan 2, 2026 Security Advisory (182 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (141 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50131
vulnetix vdb fixes CVE-2024-50131
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-50131/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart