benet: fix BUG when creating VFs
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.4.297, 5.10.241, 5.15.190, 6.1.148, 6.6.102, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: benet: fix BUG when creating VFs benet crashes as soon as SRIOV VFs are created: kernel BUG at mm/vmalloc.c:3457! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 4 UID: 0 PID: 7408 Comm: test.sh Kdump: loaded Not tainted 6.16.0+ #1 PREEMPT(voluntary) [...] RIP: 0010:vunmap+0x5f/0x70 [...] Call Trace: <TASK> __iommu_dma_free+0xe8/0x1c0 be_cmd_set_mac_list+0x3fe/0x640 [be2net] be_cmd_set_mac+0xaf/0x110 [be2net] be_vf_eth_addr_config+0x19f/0x330 [be2net] be_vf_setup+0x4f7/0x990 [be2net] be_pci_sriov_configure+0x3a1/0x470 [be2net] sriov_numvfs_store+0x20b/0x380 kernfs_fop_write_iter+0x354/0x530 vfs_write+0x9b9/0xf60 ksys_write+0xf3/0x1d0 do_syscall_64+0x8c/0x3d0 be_cmd_set_mac_list() calls dma_free_coherent() under a spin_lock_bh. Fix it by freeing only after the lock has been released.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5.4.291 · fixed in 5.4.297; From 5.10.235 · fixed in 5.10.241; From 5.15.179 · fixed in 5.15.190; From 6.1.131 · fixed in 6.1.148; From 6.6.83 · fixed in 6.6.102; From 6.12.19 · fixed in 6.12.42; From 6.13.7 · fixed in 6.14
- Linux Linux
6.14
References 9
git.kernel.org
- stable/c/3697e37e012bbd2bb5a5b467689811ba097b2eff
- stable/c/975e73b9102d844a3dc3f091ad631c56145c8b4c
- stable/c/f80b34ebc579216407b128e9d155bfcae875c30f
- stable/c/46d44a23a3723a89deeb65b13cddb17f8d9f2700
- stable/c/c377ba2be9430d165a98e4b782902ed630bc7546
- stable/c/0ddfe8b127ef1149fddccb79db6e6eaba7738e7d
- stable/c/d5dc09ee5d74277bc47193fe28ce8703e229331b
- stable/c/f4e4e0c4bc4d799d6fa39055acdbc3af066cd13e
- stable/c/5a40f8af2ba1b9bdf46e2db10e8c9710538fbc63