Linux
net: smc: fix splice entry lifetime imbalance in smc_rx_splice
In the Linux kernel, the following vulnerability has been resolved: net: smc: fix splice entry lifetime imbalance in smc_rx_splice smc_rx_splice() passes pages to splice_to_pipe() before taking the references that cover the lifetime of each splice entry. In the VM-backed RMB path, splice_to_pipe() may drop unqueued entries through smc_rx_spd_release(), while queued entries are released later via the pipe buffer callback. The old post-splice accounting also derives the number of queued VM pages from an offset mutated while building the descriptor, and a multi-page splice pairs one sock_hold() with multiple sock_put() calls. Take the page and socket references for every candidate entry before splice_to_pipe(), and drop the matching private state, page reference, and socket reference from smc_rx_spd_release() for entries that never get queued. This fixes a refcount imbalance that can underflow page refcounts and trigger a use-after-free.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < 7ddc7af2ae7fc5a0c0635b245c0824c8b76de5cb
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < 07ad246529d136d5ef441d5ab4c305d132ff3090
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < c841789e456ec6751342fa800639ce8e82ff0e6b
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < af02c67ce654356c58db20a0bb2db33ace3b07a8
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < ca8342b5fc24c249fdb998468f6a168b457c67e5
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < 0b7d54cedea5cb158e21925ae0c6c2f5c87ed2a0
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < 4515c78f4d9fd577270f012efeb062ea58b3682d
- >= 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f, < 5d9686af2976741bbd79b150d1c9e60b81e7f12e
Fixed in 7ddc7af2ae7fc5a0c0635b245c0824c8b76de5cb, 07ad246529d136d5ef441d5ab4c305d132ff3090, c841789e456ec6751342fa800639ce8e82ff0e6b, af02c67ce654356c58db20a0bb2db33ace3b07a8, ca8342b5fc24c249fdb998468f6a168b457c67e5, 0b7d54cedea5cb158e21925ae0c6c2f5c87ed2a0, 4515c78f4d9fd577270f012efeb062ea58b3682d, 5d9686af2976741bbd79b150d1c9e60b81e7f12e
- 4.18
Fixed in 0, 5.10.266, 5.15.217, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to 7ddc7af2ae7fc5a0c0635b245c0824c8b76de5cb or 07ad246529d136d5ef441d5ab4c305d132ff3090 or c841789e456ec6751342fa800639ce8e82ff0e6b or af02c67ce654356c58db20a0bb2db33ace3b07a8 or ca8342b5fc24c249fdb998468f6a168b457c67e5 or 0b7d54cedea5cb158e21925ae0c6c2f5c87ed2a0 or 4515c78f4d9fd577270f012efeb062ea58b3682d or 5d9686af2976741bbd79b150d1c9e60b81e7f12e or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.