{"id":"CVE-2024-41090","state":"PUBLISHED","title":"tap: add missing verification for short frame","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntap: add missing verification for short frame\n\nThe cited commit missed to check against the validity of the frame length\nin the tap_get_user_xdp() path, which could cause a corrupted skb to be\nsent downstack. Even before the skb is transmitted, the\ntap_get_user_xdp()-->skb_set_network_header() may assume the size is more\nthan ETH_HLEN. Once transmitted, this could either cause out-of-bound\naccess beyond the actual length, or confuse the underlayer with incorrect\nor inconsistent header length in the skb metadata.\n\nIn the alternative path, tap_get_user() already prohibits short frame which\nhas the length less than Ethernet header size from being transmitted.\n\nThis is to drop any frame shorter than the Ethernet header size just like\nhow tap_get_user() does.\n\nCVE: CVE-2024-41090","publishedAt":"2024-07-29T06:18:10.896Z","updatedAt":"2026-08-05T11:35:18.598Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"8be915fc5ff9a5e296f6538be12ea75a1a93bdea","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"7431144b406ae82807eb87d8c98e518475b0450f","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"e5e5e63c506b93b89b01f522b6a7343585f784e6","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"ee93e6da30377cf2a75e16cd32bb9fcd86a61c46","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"aa6a5704cab861c9b2ae9f475076e1881e87f5aa","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"73d462a38d5f782b7c872fe9ae8393d9ef5483da","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"e1a786b9bbb767fd1c922d424aaa8078cc542309","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"ed7f2afdd0e043a397677e597ced0830b83ba0b3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.281","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.223","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.102","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.43","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tap.c"]}],"references":["https://git.kernel.org/stable/c/8be915fc5ff9a5e296f6538be12ea75a1a93bdea","https://git.kernel.org/stable/c/7431144b406ae82807eb87d8c98e518475b0450f","https://git.kernel.org/stable/c/e5e5e63c506b93b89b01f522b6a7343585f784e6","https://git.kernel.org/stable/c/ee93e6da30377cf2a75e16cd32bb9fcd86a61c46","https://git.kernel.org/stable/c/aa6a5704cab861c9b2ae9f475076e1881e87f5aa","https://git.kernel.org/stable/c/73d462a38d5f782b7c872fe9ae8393d9ef5483da","https://git.kernel.org/stable/c/e1a786b9bbb767fd1c922d424aaa8078cc542309","https://git.kernel.org/stable/c/ed7f2afdd0e043a397677e597ced0830b83ba0b3","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41090.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-41090","state":"PUBLISHED","datePublished":"2024-07-29T06:18:10.896Z","dateUpdated":"2026-08-05T11:35:18.598Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.635Z"},"containers":{"cna":{"title":"tap: add missing verification for short frame","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntap: add missing verification for short frame\n\nThe cited commit missed to check against the validity of the frame length\nin the tap_get_user_xdp() path, which could cause a corrupted skb to be\nsent downstack. Even before the skb is transmitted, the\ntap_get_user_xdp()-->skb_set_network_header() may assume the size is more\nthan ETH_HLEN. Once transmitted, this could either cause out-of-bound\naccess beyond the actual length, or confuse the underlayer with incorrect\nor inconsistent header length in the skb metadata.\n\nIn the alternative path, tap_get_user() already prohibits short frame which\nhas the length less than Ethernet header size from being transmitted.\n\nThis is to drop any frame shorter than the Ethernet header size just like\nhow tap_get_user() does.\n\nCVE: CVE-2024-41090"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"8be915fc5ff9a5e296f6538be12ea75a1a93bdea","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"7431144b406ae82807eb87d8c98e518475b0450f","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"e5e5e63c506b93b89b01f522b6a7343585f784e6","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"ee93e6da30377cf2a75e16cd32bb9fcd86a61c46","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"aa6a5704cab861c9b2ae9f475076e1881e87f5aa","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"73d462a38d5f782b7c872fe9ae8393d9ef5483da","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"e1a786b9bbb767fd1c922d424aaa8078cc542309","versionType":"git"},{"version":"0efac27791ee068075d80f07c55a229b1335ce12","status":"affected","lessThan":"ed7f2afdd0e043a397677e597ced0830b83ba0b3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.281","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.223","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.164","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.102","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.43","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8be915fc5ff9a5e296f6538be12ea75a1a93bdea"},{"url":"https://git.kernel.org/stable/c/7431144b406ae82807eb87d8c98e518475b0450f"},{"url":"https://git.kernel.org/stable/c/e5e5e63c506b93b89b01f522b6a7343585f784e6"},{"url":"https://git.kernel.org/stable/c/ee93e6da30377cf2a75e16cd32bb9fcd86a61c46"},{"url":"https://git.kernel.org/stable/c/aa6a5704cab861c9b2ae9f475076e1881e87f5aa"},{"url":"https://git.kernel.org/stable/c/73d462a38d5f782b7c872fe9ae8393d9ef5483da"},{"url":"https://git.kernel.org/stable/c/e1a786b9bbb767fd1c922d424aaa8078cc542309"},{"url":"https://git.kernel.org/stable/c/ed7f2afdd0e043a397677e597ced0830b83ba0b3"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only through vhost-net's batched XDP TX path, driven either by a guest VM's TX virtqueue on the same host or by a local process holding /dev/vhost-net plus a macvtap/ipvtap fd. Data arrives via shared memory rings, not from a remote network peer, so this is local rather than network access.\nAC:L - The attacker simply posts a TX descriptor whose payload is shorter than 14 bytes and kicks the virtqueue; vhost_net_build_xdp() only rejects len < sock_hlen, so the short frame reaches tap_get_user_xdp() deterministically. The XDP batch path is active in the default QEMU configuration (unlimited sndbuf), and can be retried indefinitely.\nPR:L - The attacker must be an authorized guest VM on the host, or a local user with access to /dev/vhost-net and a tap/macvtap character device — some privilege, but nothing resembling host root. No CAP_SYS_ADMIN or init-namespace root is needed to trigger the path.\nUI:N - The malformed frame is processed entirely by the vhost worker kthread as soon as the guest kicks the ring; no host administrator or victim action is involved.\nS:C - A guest VM with zero host privileges corrupts host-kernel skb state and leaks host heap contents, crossing the guest/host virtualization boundary; the impacted resources (host kernel, physical NIC path, peer macvtap interfaces belonging to other tenants) lie outside the attacking guest's security authority.\nC:H - skb->protocol is populated from eth_hdr() bytes that were never copied from the guest, exposing uninitialized page_frag memory that can contain remnants of previously transmitted host/other-guest packets, and the sub-ETH_HLEN skb causes downstream code to read beyond the actual frame length. The resulting memory-disclosure primitive is not bounded to a trivial value.\nI:H - A corrupted skb with network_header pointing past skb->tail is passed to dev_queue_xmit(), so lower-layer drivers and offload code compute header lengths that underflow to enormous unsigned values, yielding out-of-bounds accesses and DMA/copy lengths attacker-influencing kernel memory. Such skb metadata corruption is leverageable for control-flow-relevant memory corruption.\nA:H - The out-of-bounds accesses and inconsistent header offsets in downstream network drivers readily produce a kernel oops or panic on the host, and the guest can repeat the trigger at will to keep the host down."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:35:18.598Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.281"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.10.223"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.15.164"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.1.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.6.43"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.9.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.10.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/8be915fc5ff9a5e296f6538be12ea75a1a93bdea","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7431144b406ae82807eb87d8c98e518475b0450f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e5e5e63c506b93b89b01f522b6a7343585f784e6","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ee93e6da30377cf2a75e16cd32bb9fcd86a61c46","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/aa6a5704cab861c9b2ae9f475076e1881e87f5aa","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/73d462a38d5f782b7c872fe9ae8393d9ef5483da","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e1a786b9bbb767fd1c922d424aaa8078cc542309","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ed7f2afdd0e043a397677e597ced0830b83ba0b3","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:00:46.396Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-41090","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:24:59.280166Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:06.307Z"}}]}}}