7.5high
sfc: Don't invoke xdp_do_flush() from netpoll.
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.46% (higher than 41% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: sfc: Don't invoke xdp_do_flush() from netpoll. Yury reported a crash in the sfc driver originated from netpoll_send_udp(). The netconsole sends a message and then netpoll invokes the driver's NAPI function with a budget of zero. It is dedicated to allow driver to free TX resources, that it may have used while sending the packet. In the netpoll case the driver invokes xdp_do_flush() unconditionally, leading to crash because bpf_net_context was never assigned. Invoke xdp_do_flush() only if budget is not zero.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 401cb7dae8130fd34eb84648e02ab4c506df7d5e before 65d4fc76d75c136744e67754d20feda609e7b793, from 401cb7dae8130fd34eb84648e02ab4c506df7d5e before 55e802468e1d38dec8e25a2fdb6078d45b647e8c, 6.11 Not affected: before 6.11, from 6.11.4 up to 6.11.*, from 6.12 up to * | CVE List |
| linux linux_kernel | from 6.11 before 6.11.4, 6.12 | NVD |
All scores
| Linux | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: sfc: Don't invoke xdp_do_flush() from netpoll. Yury reported a crash in the sfc driver originated from netpoll_send_udp(). The netconsole sends a message and then netpoll invokes the driver's NAPI function with a budget of zero. It is dedicated to allow driver to free TX resources, that it may have used while sending the packet. In the netpoll case the driver invokes xdp_do_flush() unconditionally, leading to crash because bpf_net_context was never assigned. Invoke xdp_do_flush() only if budget is not zero.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: sfc: No invoque xdp_do_flush() desde netpoll. Yury informó de un fallo en el controlador sfc originado desde netpoll_send_udp(). La netconsole envía un mensaje y luego netpoll invoca la función NAPI del controlador con un presupuesto de cero. Está dedicada a permitir que el controlador libere recursos TX, que puede haber usado al enviar el paquete. En el caso de netpoll, el controlador invoca xdp_do_flush() incondicionalmente, lo que provoca un fallo porque bpf_net_context nunca se asignó. Invoque xdp_do_flush() solo si el presupuesto no es cero.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50094 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-50094 changed 2026-08-04 | Public domain |