{"id":"CVE-2024-40999","state":"PUBLISHED","title":"net: ena: Add validation for completion descriptors consistency","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ena: Add validation for completion descriptors consistency\n\nValidate that `first` flag is set only for the first\ndescriptor in multi-buffer packets.\nIn case of an invalid descriptor, a reset will occur.\nA new reset reason for RX data corruption has been added.","publishedAt":"2024-07-12T12:37:40.507Z","updatedAt":"2026-10-30T12:18:39.938Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"4f163a8035e76e835a984cf548b3e6922cfe145f","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"edb9a302cc9386142beffe5d9bbe4bfd36999eee","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"42146ee5286f16f1674a84f7c274dcca65c6ff2e","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"b37b98a3a0c1198bafe8c2d9ce0bc845b4e7a9a7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/amazon/ena/ena_eth_com.c","drivers/net/ethernet/amazon/ena/ena_netdev.c","drivers/net/ethernet/amazon/ena/ena_regs_defs.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.7","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/amazon/ena/ena_eth_com.c","drivers/net/ethernet/amazon/ena/ena_netdev.c","drivers/net/ethernet/amazon/ena/ena_regs_defs.h"]}],"references":["https://git.kernel.org/stable/c/4f163a8035e76e835a984cf548b3e6922cfe145f","https://git.kernel.org/stable/c/edb9a302cc9386142beffe5d9bbe4bfd36999eee","https://git.kernel.org/stable/c/42146ee5286f16f1674a84f7c274dcca65c6ff2e","https://git.kernel.org/stable/c/b37b98a3a0c1198bafe8c2d9ce0bc845b4e7a9a7"],"weaknesses":[],"ingestedAt":"2026-10-30T12:34:06.950Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/40xxx/CVE-2024-40999.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-40999","state":"PUBLISHED","datePublished":"2024-07-12T12:37:40.507Z","dateUpdated":"2026-10-30T12:18:39.938Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.608Z"},"containers":{"cna":{"title":"net: ena: Add validation for completion descriptors consistency","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ena: Add validation for completion descriptors consistency\n\nValidate that `first` flag is set only for the first\ndescriptor in multi-buffer packets.\nIn case of an invalid descriptor, a reset will occur.\nA new reset reason for RX data corruption has been added."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"4f163a8035e76e835a984cf548b3e6922cfe145f","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"edb9a302cc9386142beffe5d9bbe4bfd36999eee","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"42146ee5286f16f1674a84f7c274dcca65c6ff2e","versionType":"git"},{"version":"1738cd3ed342294360d6a74d4e58800004bff854","status":"affected","lessThan":"b37b98a3a0c1198bafe8c2d9ce0bc845b4e7a9a7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/amazon/ena/ena_eth_com.c","drivers/net/ethernet/amazon/ena/ena_netdev.c","drivers/net/ethernet/amazon/ena/ena_regs_defs.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.7","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/amazon/ena/ena_eth_com.c","drivers/net/ethernet/amazon/ena/ena_netdev.c","drivers/net/ethernet/amazon/ena/ena_regs_defs.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/4f163a8035e76e835a984cf548b3e6922cfe145f"},{"url":"https://git.kernel.org/stable/c/edb9a302cc9386142beffe5d9bbe4bfd36999eee"},{"url":"https://git.kernel.org/stable/c/42146ee5286f16f1674a84f7c274dcca65c6ff2e"},{"url":"https://git.kernel.org/stable/c/b37b98a3a0c1198bafe8c2d9ce0bc845b4e7a9a7"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable code is the NIC receive completion path (`ena_clean_rx_irq`/`ena_com_rx_pkt`), entered solely as a result of frames arriving from the network, and the multi-descriptor framing logic at fault is only exercised by large/scattered packets a remote peer generates at will. ENA is the standard NIC on internet-facing AWS EC2 instances, so the path is driven by remote, unauthenticated traffic.\nAC:L - No specific memory layout, victim state, or non-default configuration is required; the descriptor-framing path is exercised by ordinary multi-buffer RX traffic and the driver's cross-poll partial-packet state can be driven by sustained large-packet load. Per the rule to choose the higher severity when uncertain, the influenceable device-side framing condition is scored as Low rather than High.\nPR:N - Processing happens in NAPI/softirq context before any socket, filesystem, or authentication layer is reached, so no account or capability on the target is needed. A remote peer simply sends packets to the interface.\nUI:N - The RX completion path runs automatically whenever the interface is up and receiving traffic. No victim action of any kind is required.\nS:U - The mis-framed descriptors corrupt driver state and skb contents within the same kernel/host security authority. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - Merged descriptor chains splice RX buffers belonging to unrelated packets into a single skb delivered to the network stack, and the accumulated `buf_offset`/`buf_len` can describe fragments extending past the real allocation, giving out-of-bounds reads. Stale page pointers reaching `skb_add_rx_frag()` constitute a use-after-free, which is scored High for confidentiality.\nI:H - The unguarded fragment loop can `page_ref_inc()` and `skb_add_rx_frag()` a stale or already-released page and DMA-unmap an already-unmapped buffer, producing double-free/UAF heap-corruption primitives; corrupted packet data is also injected into the stack. Memory corruption of this kind is exploitable for control-flow hijack and is scored High.\nA:H - A NULL `rx_info->page` reaching `page_ref_inc()`/`skb_add_rx_frag()` is an immediate kernel oops, and even the benign outcome is RX ring desync that stalls buffer replenishment and forces a full device reset, dropping network connectivity. Any kernel crash or hang is scored High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:18:39.938Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.9.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/42146ee5286f16f1674a84f7c274dcca65c6ff2e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b37b98a3a0c1198bafe8c2d9ce0bc845b4e7a9a7","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:39:56.158Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-40999","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:01:22.448911Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:19.348Z"}}]}}}