CVE: CVE-2021-47174
Published: 2024-03-25
Description: In the Linux kernel, the following vulnerability has been resolved:

netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version

Arturo reported this backtrace:

[[PII_REDACTED]91] WARNING: CPU: 3 PID: 456 at arch/x86/kernel/fpu/core.c:128 kernel_fpu_begin_mask+0xae/0xe0
[[PII_REDACTED]93] Modules linked in: binfmt_misc nft_nat nft_chain_nat nf_nat nft_counter nft_ct nf_tables nf_conntrack_netlink nfnetlink 8021q garp stp mrp llc vrf intel_rapl_msr intel_rapl_common skx_edac nfit libnvdimm ipmi_ssif x86_pkg_temp_thermal intel_powerclamp coretemp crc32_pclmul mgag200 ghash_clmulni_intel drm_kms_helper cec aesni_intel drm libaes crypto_simd cryptd glue_helper mei_me dell_smbios iTCO_wdt evdev intel_pmc_bxt iTCO_vendor_support dcdbas pcspkr rapl dell_wmi_descriptor wmi_bmof sg i2c_algo_bit watchdog mei acpi_ipmi ipmi_si button nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ipmi_devintf ipmi_msghandler ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 dm_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor sd_mod t10_pi crc_t10dif crct10dif_generic raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod ahci libahci tg3 libata xhci_pci libphy xhci_hcd ptp usbcore crct10dif_pclmul crct10dif_common bnxt_en crc32c_intel scsi_mod
[[PII_REDACTED]41]  pps_core i2c_i801 lpc_ich i2c_smbus wmi usb_common
[[PII_REDACTED]57] CPU: 3 PID: 456 Comm: jbd2/dm-0-8 Not tainted 5.10.0-0.bpo.5-amd64 #1 Debian 5.10.24-1~bpo10+1
[[PII_REDACTED]59] Hardware name: Dell Inc. PowerEdge R440/04JN2K, BIOS 2.9.3 09/23/2020
[[PII_REDACTED]64] RIP: 0010:kernel_fpu_begin_mask+0xae/0xe0
[[PII_REDACTED]69] Code: ae 54 24 04 83 e3 01 75 38 48 8b 44 24 08 65 48 33 04 25 28 00 00 00 75 33 48 83 c4 10 5b c3 65 8a 05 5e 21 5e 76 84 c0 74 92 <0f> 0b eb 8e f0 80 4f 01 40 48 81 c7 00 14 00 00 e8 dd fb ff ff eb
[[PII_REDACTED]72] RSP: 0018:ffffbb[PII_REDACTED] EFLAGS: 00010202
[[PII_REDACTED]76] RAX: [PII_REDACTED] RBX: [PII_REDACTED] RCX: [PII_REDACTED]
[[PII_REDACTED]79] RDX: ffffbb[PII_REDACTED] RSI: ffff922fe1952e00 RDI: [PII_REDACTED]
[[PII_REDACTED]81] RBP: ffffbb[PII_REDACTED] R08: ffff922fc868a600 R09: ffff922fc711e462
[[PII_REDACTED]84] R10:[PII_REDACTED]00005f R11: ffff922ff0b27180 R12: ffffbb[PII_REDACTED]
[[PII_REDACTED]87] R13: ffffbb9700304b08 R14: ffff922fc664b6c8 R15: ffff922fc664b660
[[PII_REDACTED]90] FS:  [PII_REDACTED](0000) GS:ffff92371fec0000(0000) knlGS:[PII_REDACTED]
[[PII_REDACTED]93] CS:  0010 DS: 0000 ES: 0000 CR0: [PII_REDACTED]
[[PII_REDACTED]96] CR2: 0000557a6655bdd0 CR3:[PII_REDACTED]20a001 CR4:[PII_REDACTED]7706e0
[[PII_REDACTED]99] DR0: [PII_REDACTED] DR1: [PII_REDACTED] DR2: [PII_REDACTED]
[[PII_REDACTED]01] DR3: [PII_REDACTED] DR6: 00000000fffe0ff0 DR7: [PII_REDACTED]
[[PII_REDACTED]03] PKRU: 55555554
[[PII_REDACTED]05] Call Trace:
[[PII_REDACTED]09]  <IRQ>
[[PII_REDACTED]35]  nft_pipapo_avx2_lookup+0x4c/0x1cba [nf_tables]
[[PII_REDACTED]46]  ? sched_clock+0x5/0x10
[[PII_REDACTED]54]  ? sched_clock_cpu+0xc/0xb0
[[PII_REDACTED]61]  ? record_times+0x16/0x80
[[PII_REDACTED]68]  ? plist_add+0xc1/0x100
[[PII_REDACTED]73]  ? psi_group_change+0x47/0x230
[[PII_REDACTED]79]  ? skb_clone+0x4d/0xb0
[[PII_REDACTED]85]  ? enqueue_task_rt+0x22b/0x310
[[PII_REDACTED]98]  ? bnxt_start_xmit+0x1e8/0xaf0 [bnxt_en]
[[PII_REDACTED]02]  ? packet_rcv+0x40/0x4a0
[[PII_REDACTED]21]  nft_lookup_eval+0x59/0x160 [nf_tables]
[[PII_REDACTED]33]  nft_do_chain+0x350/0x500 [nf_tables]
[[PII_REDACTED]52]  ? nft_lookup_eval+0x59/0x160 [nf_tables]
[[PII_REDACTED]63]  ? nft_do_chain+0x364/0x500 [nf_tables]
[[PII_REDACTED]72]  ? fib4_rule_action+0x6d/0x80
[[PII_REDACTED]78]  ? fib_rules_lookup+0x107/0x250
[[PII_REDACTED]84]  nft_nat_do_chain+0x8a/0xf2 [nft_chain_nat]
[[PII_REDACTED]93]  nf_nat_inet_fn+0xea/0x210 [nf_nat]
[[PII_REDACTED]02]  nf_nat_ipv4_out+0x14/0xa0 [nf_nat]
[[PII_REDACTED]07]  nf_hook_slow+0x44/0xc0
[[PII_REDACTED]14]  ip_output+0xd2/0x100
[[PII_REDACTED]21]  ? __ip_finish_output+0x210/0x210
[[PII_REDACTED]26]  ip_forward+0x37d/0x4a0
[[PII_REDACTED]32]  ? ip4_key_hashfn+0xb0/0xb0
[[PII_REDACTED]38]  ip_subli
---truncated---
CVSS Score: 5.5 (MEDIUM)
References: https://git.kernel.org/stable/c/727a2b4fc951ee69847d4904d98961856ea9fbe6; https://git.kernel.org/stable/c/b1f45a26bd322525c14edd9504f6d46dfad679a4; https://git.kernel.org/stable/c/f0b3d338064e1fe7531f0d2977e35f3b334abfb4