CVE-2026-43502 PUBLISHED

net/rds: handle zerocopy send cleanup before the message is queued

Assigner: Linux
Reserved: 01.05.2026 Published: 21.05.2026 Updated: 21.05.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 to 21d70744e6d3bbf9293aa1ee6fba7c53ad75275e (excl.)
  • affected from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 to 3abc8983b2bae3f487f77d9da5527d7d6b210d46 (excl.)
  • affected from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 to 14ef6fd18db2494098b21e0471bf27a1d8e9993e (excl.)
  • affected from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 to 0f5c185fc79a59ee9991234dd6d2a3e5afa6e75b (excl.)
  • affected from 0cebaccef3acbdfbc2d85880a2efb765d2f4e2e3 to 44b550d88b267320459d518c0743a241ab2108fa (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.17 is affected
  • unaffected from 0 to 4.17 (excl.)
  • unaffected from 6.6.140 to 6.6.* (incl.)
  • unaffected from 6.12.88 to 6.12.* (incl.)
  • unaffected from 6.18.30 to 6.18.* (incl.)
  • unaffected from 7.0.7 to 7.0.* (incl.)
  • unaffected from 7.1-rc3 to * (incl.)

References