# CVE-2024-35901: net: mana: Fix Rx DMA datasize and skb_over_panic

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2024-05-19T08:34:54.879Z
- Modified: 2026-08-05T11:30:52.091Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: mana: Fix Rx DMA datasize and skb_over_panic

mana_get_rxbuf_cfg() aligns the RX buffer's DMA datasize to be
multiple of 64. So a packet slightly bigger than mtu+14, say 1536,
can be received and cause skb_over_panic.

Sample dmesg:
[ 5325.237162] skbuff: skb_over_panic: text:ffffffffc043277a len:1536 put:1536 head:ff1100018b517000 data:ff1100018b517100 tail:0x700 end:0x6ea dev:<NULL>
[ 5325.243689] ------------[ cut here ]------------
[ 5325.245748] kernel BUG at net/core/skbuff.c:192!
[ 5325.247838] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 5325.258374] RIP: 0010:skb_panic+0x4f/0x60
[ 5325.302941] Call Trace:
[ 5325.304389]  <IRQ>
[ 5325.315794]  ? skb_panic+0x4f/0x60
[ 5325.317457]  ? asm_exc_invalid_op+0x1f/0x30
[ 5325.319490]  ? skb_panic+0x4f/0x60
[ 5325.321161]  skb_put+0x4e/0x50
[ 5325.322670]  mana_poll+0x6fa/0xb50 [mana]
[ 5325.324578]  __napi_poll+0x33/0x1e0
[ 5325.326328]  net_rx_action+0x12e/0x280

As discussed internally, this alignment is not necessary. To fix
this bug, remove it from the code. So oversized packets will be
marked as CQE_RX_TRUNCATED by NIC, and dropped.

(As written by CVE List.)

## Affected

- Linux Linux: from 2fbbd712baf1c60996554326728bbdbef5616e12 before ca58927b00385005f488b6a9905ced7a4f719aad; from 2fbbd712baf1c60996554326728bbdbef5616e12 before 05cb7c41fa1a7a7b2c2a6b81bbe7c67f5c11932b; from 2fbbd712baf1c60996554326728bbdbef5616e12 before c0de6ab920aafb56feab56058e46b688e694a246; 6.4 (not affected: before 6.4; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.4 before 6.6.26; from 6.7 before 6.8.5; 6.9

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ca58927b00385005f488b6a9905ced7a4f719aad> (patch)
- <https://git.kernel.org/stable/c/05cb7c41fa1a7a7b2c2a6b81bbe7c67f5c11932b> (patch)
- <https://git.kernel.org/stable/c/c0de6ab920aafb56feab56058e46b688e694a246> (patch)

## Sources

- CVE List: [CVE-2024-35901](https://www.cve.org/CVERecord?id=CVE-2024-35901), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35901](https://nvd.nist.gov/vuln/detail/CVE-2024-35901), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35901 · Whole record: https://cve.day/CVE-2024-35901.json · Rebuilt by cve.day 2026-11-25T22:58:40.592Z
