CVE-2026-43494
JSON

7.8high

net/rds: reset op_nents when zerocopy page pin fails

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/rds: reset op_nents when zerocopy page pin fails When iov_iter_get_pages2() fails in rds_message_zcopy_from_user(), the pinned pages are released with put_page(), and rm->data.op_mmp_znotifier is cleared. But we fail to properly clear rm->data.op_nents. Later when rds_message_purge() is called from rds_sendmsg() the cleanup loop iterates over the incorrectly non zero number of op_nents and frees them again. Fix this by properly resetting op_nents when it should be in rds_message_zcopy_from_user().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before c6e51512a784c4a7b86e1a044988696e3b3721fa, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 03014551938a0887fa55f18ce49b70158a9c0113, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before d84ce1786ce40fdd3dd98db47aec5527817e1ef6, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 9115669faedccdda100428e2d26fd0aac8c50799, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 0bbbff00a15b1df2cac9014d6cf4b6890f473353, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 640e37f58f991546a87540d067279c2c1fa9fe51, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before 290e833d1acb1093bc121fcdc97f5e6161157479, from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 before e174929793195e0cd6a4adb0cad731b39f9019b4 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.141 up to 6.6.*, from 6.12.91 up to 6.12.*
CVE List
kernelNot specifiedCVE List
kernel-rtNot specifiedCVE List
linux linux_kernelfrom 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.141, from 6.7 before 6.12.91, from 6.13 before 6.18.33, from 6.19 before 7.0.10, 7.1NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
redhat-SADP7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415CWE-1341

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/rds: reset op_nents when zerocopy page pin fails When iov_iter_get_pages2() fails in rds_message_zcopy_from_user(), the pinned pages are released with put_page(), and rm->data.op_mmp_znotifier is cleared. But we fail to properly clear rm->data.op_nents. Later when rds_message_purge() is called from rds_sendmsg() the cleanup loop iterates over the incorrectly non zero number of op_nents and frees them again. Fix this by properly resetting op_nents when it should be in rds_message_zcopy_from_user().

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/rds: restablecer op_nents cuando falla el anclaje de página de copia cero Cuando iov_iter_get_pages2() falla en rds_message_zcopy_from_user(), las páginas ancladas se liberan con put_page(), y rm->data.op_mmp_znotifier se borra. Pero no logramos borrar correctamente rm->data.op_nents. Más tarde, cuando se llama a rds_message_purge() desde rds_sendmsg(), el bucle de limpieza itera sobre el número incorrectamente no cero de op_nents y los libera de nuevo. Solucionar esto restableciendo correctamente op_nents cuando debería ser en rds_message_zcopy_from_user().

References

https://git.kernel.org/stable/c/c6e51512a784c4a7b86e1a044988696e3b3721fapatch
https://git.kernel.org/stable/c/03014551938a0887fa55f18ce49b70158a9c0113patch
https://git.kernel.org/stable/c/d84ce1786ce40fdd3dd98db47aec5527817e1ef6patch
https://git.kernel.org/stable/c/9115669faedccdda100428e2d26fd0aac8c50799patch
https://git.kernel.org/stable/c/0bbbff00a15b1df2cac9014d6cf4b6890f473353patch
https://git.kernel.org/stable/c/640e37f58f991546a87540d067279c2c1fa9fe51patch
https://git.kernel.org/stable/c/290e833d1acb1093bc121fcdc97f5e6161157479patch
https://git.kernel.org/stable/c/e174929793195e0cd6a4adb0cad731b39f9019b4patch
https://github.com/v12-security/pocs/tree/main/pintheftexploit, third-party-advisory
http://www.openwall.com/lists/oss-security/2026/05/21/2mailing-list
https://access.redhat.com/security/cve/CVE-2026-43494vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2480434issue-tracking

Sources

SourceRecordLicence
CVE ListCVE-2026-43494 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-43494 changed 2026-10-19Public domain