7.8high
net/rds: handle zerocopy send cleanup before the message is queued
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.18% (higher than 5% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net/rds: handle zerocopy send cleanup before the message is queued A zerocopy send can fail after user pages have been pinned but before the message is attached to the sending socket. The purge path currently infers zerocopy state from rm->m_rs, so an unqueued message can be cleaned up as if it owned normal payload pages. However, zerocopy ownership is really determined by the presence of op_mmp_znotifier, regardless of whether the message has reached the socket queue. Capture op_mmp_znotifier up front in rds_message_purge() and use it as the cleanup discriminator. If the message is already associated with a socket, keep the existing completion path. Otherwise, drop the pinned page accounting directly and release the notifier before putting the payload pages. This keeps early send failure cleanup consistent with the zerocopy lifetime rules without changing the normal queued completion path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before e9aefdc5c53fe9aed108c14e3d155710a1bb14c9, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 46662f7dc59475995609bf3e9d27eb36f4acf26f, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 1e262db7675e27f42c3f3f47d6011855f4454f24, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 21d70744e6d3bbf9293aa1ee6fba7c53ad75275e, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 3abc8983b2bae3f487f77d9da5527d7d6b210d46, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 14ef6fd18db2494098b21e0471bf27a1d8e9993e, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 0f5c185fc79a59ee9991234dd6d2a3e5afa6e75b, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 44b550d88b267320459d518c0743a241ab2108fa and 1 more Not affected: before 4.17, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.140 up to 6.6.*, from 6.12.88 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.17 before 5.10.258, from 5.11 before 5.15.209, from 5.16 before 6.1.175, from 6.2 before 6.6.140, from 6.7 before 6.12.88, from 6.13 before 6.18.30, from 6.19 before 7.0.7, 7.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net/rds: handle zerocopy send cleanup before the message is queued A zerocopy send can fail after user pages have been pinned but before the message is attached to the sending socket. The purge path currently infers zerocopy state from rm->m_rs, so an unqueued message can be cleaned up as if it owned normal payload pages. However, zerocopy ownership is really determined by the presence of op_mmp_znotifier, regardless of whether the message has reached the socket queue. Capture op_mmp_znotifier up front in rds_message_purge() and use it as the cleanup discriminator. If the message is already associated with a socket, keep the existing completion path. Otherwise, drop the pinned page accounting directly and release the notifier before putting the payload pages. This keeps early send failure cleanup consistent with the zerocopy lifetime rules without changing the normal queued completion path.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/rds: manejar la limpieza de envío de zerocopy antes de que el mensaje sea encolado Un envío zerocopy puede fallar después de que las páginas de usuario hayan sido fijadas pero antes de que el mensaje sea adjuntado al socket de envío. La ruta de purga actualmente infiere el estado zerocopy de rm->m_rs, por lo que un mensaje no encolado puede ser limpiado como si poseyera páginas de carga útil normales. Sin embargo, la propiedad zerocopy es realmente determinada por la presencia de op_mmp_znotifier, independientemente de si el mensaje ha llegado a la cola del socket. Capturar op_mmp_znotifier de antemano en rds_message_purge() y usarlo como discriminador de limpieza. Si el mensaje ya está asociado con un socket, mantener la ruta de finalización existente. De lo contrario, descartar la contabilidad de páginas fijadas directamente y liberar el notificador antes de colocar las páginas de carga útil. Esto mantiene la limpieza temprana de fallos de envío consistente con las reglas de vida útil de zerocopy sin cambiar la ruta de finalización encolada normal.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43502 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2026-43502 changed 2026-10-15 | Public domain |