{"id":"CVE-2024-53088","state":"PUBLISHED","title":"i40e: fix race condition by adding filter's intermediate sync state","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni40e: fix race condition by adding filter's intermediate sync state\n\nFix a race condition in the i40e driver that leads to MAC/VLAN filters\nbecoming corrupted and leaking. Address the issue that occurs under\nheavy load when multiple threads are concurrently modifying MAC/VLAN\nfilters by setting mac and port VLAN.\n\n1. Thread T0 allocates a filter in i40e_add_filter() within\n        i40e_ndo_set_vf_port_vlan().\n2. Thread T1 concurrently frees the filter in __i40e_del_filter() within\n        i40e_ndo_set_vf_mac().\n3. Subsequently, i40e_service_task() calls i40e_sync_vsi_filters(), which\n        refers to the already freed filter memory, causing corruption.\n\nReproduction steps:\n1. Spawn multiple VFs.\n2. Apply a concurrent heavy load by running parallel operations to change\n        MAC addresses on the VFs and change port VLANs on the host.\n3. Observe errors in dmesg:\n\"Error I40E_AQ_RC_ENOSPC adding RX filters on VF XX,\n\tplease set promiscuous on manually for VF XX\".\n\nExact code for stable reproduction Intel can't open-source now.\n\nThe fix involves implementing a new intermediate filter state,\nI40E_FILTER_NEW_SYNC, for the time when a filter is on a tmp_add_list.\nThese filters cannot be deleted from the hash list directly but\nmust be removed using the full process.","publishedAt":"2024-11-19T17:45:16.169Z","updatedAt":"2026-08-05T11:43:32.629Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/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":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"262dc6ea5f1eb18c4d08ad83d51222d0dd0dd42a","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"7ad3fb3bfd43feb4e15c81dffd23ac4e55742791","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"bf5f837d9fd27d32fb76df0a108babcaf4446ff1","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"6e046f4937474bc1b9fa980c1ad8f3253fc638f6","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"f30490e9695ef7da3d0899c6a0293cc7cd373567","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/i40e/i40e.h","drivers/net/ethernet/intel/i40e/i40e_debugfs.c","drivers/net/ethernet/intel/i40e/i40e_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.15.172","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.117","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.61","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","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/intel/i40e/i40e.h","drivers/net/ethernet/intel/i40e/i40e_debugfs.c","drivers/net/ethernet/intel/i40e/i40e_main.c"]}],"references":["https://git.kernel.org/stable/c/262dc6ea5f1eb18c4d08ad83d51222d0dd0dd42a","https://git.kernel.org/stable/c/7ad3fb3bfd43feb4e15c81dffd23ac4e55742791","https://git.kernel.org/stable/c/bf5f837d9fd27d32fb76df0a108babcaf4446ff1","https://git.kernel.org/stable/c/6e046f4937474bc1b9fa980c1ad8f3253fc638f6","https://git.kernel.org/stable/c/f30490e9695ef7da3d0899c6a0293cc7cd373567","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/53xxx/CVE-2024-53088.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-53088","state":"PUBLISHED","datePublished":"2024-11-19T17:45:16.169Z","dateUpdated":"2026-08-05T11:43:32.629Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-11-19T17:17:24.980Z"},"containers":{"cna":{"title":"i40e: fix race condition by adding filter's intermediate sync state","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni40e: fix race condition by adding filter's intermediate sync state\n\nFix a race condition in the i40e driver that leads to MAC/VLAN filters\nbecoming corrupted and leaking. Address the issue that occurs under\nheavy load when multiple threads are concurrently modifying MAC/VLAN\nfilters by setting mac and port VLAN.\n\n1. Thread T0 allocates a filter in i40e_add_filter() within\n        i40e_ndo_set_vf_port_vlan().\n2. Thread T1 concurrently frees the filter in __i40e_del_filter() within\n        i40e_ndo_set_vf_mac().\n3. Subsequently, i40e_service_task() calls i40e_sync_vsi_filters(), which\n        refers to the already freed filter memory, causing corruption.\n\nReproduction steps:\n1. Spawn multiple VFs.\n2. Apply a concurrent heavy load by running parallel operations to change\n        MAC addresses on the VFs and change port VLANs on the host.\n3. Observe errors in dmesg:\n\"Error I40E_AQ_RC_ENOSPC adding RX filters on VF XX,\n\tplease set promiscuous on manually for VF XX\".\n\nExact code for stable reproduction Intel can't open-source now.\n\nThe fix involves implementing a new intermediate filter state,\nI40E_FILTER_NEW_SYNC, for the time when a filter is on a tmp_add_list.\nThese filters cannot be deleted from the hash list directly but\nmust be removed using the full process."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"262dc6ea5f1eb18c4d08ad83d51222d0dd0dd42a","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"7ad3fb3bfd43feb4e15c81dffd23ac4e55742791","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"bf5f837d9fd27d32fb76df0a108babcaf4446ff1","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"6e046f4937474bc1b9fa980c1ad8f3253fc638f6","versionType":"git"},{"version":"278e7d0b9d6864a9749b9473a273892aa1528621","status":"affected","lessThan":"f30490e9695ef7da3d0899c6a0293cc7cd373567","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/i40e/i40e.h","drivers/net/ethernet/intel/i40e/i40e_debugfs.c","drivers/net/ethernet/intel/i40e/i40e_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"5.15.172","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.117","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.61","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","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/intel/i40e/i40e.h","drivers/net/ethernet/intel/i40e/i40e_debugfs.c","drivers/net/ethernet/intel/i40e/i40e_main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/262dc6ea5f1eb18c4d08ad83d51222d0dd0dd42a"},{"url":"https://git.kernel.org/stable/c/7ad3fb3bfd43feb4e15c81dffd23ac4e55742791"},{"url":"https://git.kernel.org/stable/c/bf5f837d9fd27d32fb76df0a108babcaf4446ff1"},{"url":"https://git.kernel.org/stable/c/6e046f4937474bc1b9fa980c1ad8f3253fc638f6"},{"url":"https://git.kernel.org/stable/c/f30490e9695ef7da3d0899c6a0293cc7cd373567"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The race is driven through local socket/netlink operations on the i40e interface (multicast join/leave via setsockopt, or rtnetlink VF MAC/port-VLAN changes) which manipulate the driver's MAC/VLAN filter hash. No remote peer data reaches the vulnerable code path.\nAC:L - The attacker controls both sides of the race — creating the I40E_FILTER_NEW filter, scheduling the sync via __I40E_MACVLAN_SYNC_PENDING, and issuing the free — and the window is milliseconds wide while i40e_sync_vsi_filters() waits on firmware admin-queue commands with mac_filter_hash_lock dropped. The loop can be retried indefinitely at no cost.\nPR:L - An entirely unprivileged local user can reach __i40e_del_filter() via IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP, which flows through ip_mc_filter_add/del → dev_mc_add/del → i40e_set_rx_mode → i40e_addr_sync/unsync with no capability check anywhere on the path. CAP_NET_ADMIN is not required, only a local account.\nUI:N - Exploitation is fully self-driven by the attacker's own socket operations against the i40e netdev; no action by any other user or administrator is needed.\nS:U - The use-after-free corrupts host kernel heap memory managed by the same security authority as the attacker's context, i.e. standard in-kernel memory corruption and privilege escalation.\nC:H - The freed i40e_mac_filter is dereferenced for macaddr and vlan, and those stale heap bytes are programmed into the NIC's hardware filter table, so reoccupied kernel heap contents leak into observable device state; per UAF scoring this supports arbitrary read leverage.\nI:H - The sync path writes new->f->state into the freed kmalloc-32 chunk (offset 24, potentially clobbering the SLUB freelist pointer) and corrupts netdev_hw_addr refcounts, giving a spray-and-write primitive usable for control-flow hijacking; the bug also leaves stale/leaked hardware MAC filters and forces promiscuous mode.\nA:H - Use-after-free on a heavily shared kmalloc-32 cache causes slab corruption, refcount corruption and kernel panics/oopses (immediate BUG under KASAN or hardened allocators), and the filter leak degrades the interface until reset."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:43:32.629Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.15.172"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.1.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.6.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.11.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":4.7,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-53088","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:11:41.083931Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","type":"CWE","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:14.117Z"}},{"title":"CVE Program Container","references":[{"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:29:06.753Z"}}]}}}