{"id":"CVE-2026-46053","state":"PUBLISHED","title":"net: rds: fix MR cleanup on copy error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rds: fix MR cleanup on copy error\n\n__rds_rdma_map() hands sg/pages ownership to the transport after\nget_mr() succeeds. If copying the generated cookie back to user space\nfails after that point, the error path must not free those resources\nagain before dropping the MR reference.\n\nRemove the duplicate unpin/free from the put_user() failure branch so\nthat MR teardown is handled only through the existing final cleanup\npath.","publishedAt":"2026-05-27T12:57:11.870Z","updatedAt":"2026-08-05T12:29:21.209Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"91a44b406bc1f9e1c5da0cb7d0d5991b43b79147","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"106dc689206610cfa2098f593fdd1e020c997835","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"ec55a86f7fba7d9111df94b9c11a4755ed492995","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"8fdbb6262a4a3ed44a0830a7793903b54bb27bdc","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"d95cea9298be1ba8876e3f156be96d3a492085ca","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"033370ffb3c9c0264d19f8ba9ef769523266589a","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"b3cb8cae530b2727d8245684148bb49425f6765c","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"8141a2dc70080eda1aedc0389ed2db2b292af5bd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.258","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.209","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.140","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.86","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/rdma.c"]}],"references":["https://git.kernel.org/stable/c/91a44b406bc1f9e1c5da0cb7d0d5991b43b79147","https://git.kernel.org/stable/c/106dc689206610cfa2098f593fdd1e020c997835","https://git.kernel.org/stable/c/ec55a86f7fba7d9111df94b9c11a4755ed492995","https://git.kernel.org/stable/c/8fdbb6262a4a3ed44a0830a7793903b54bb27bdc","https://git.kernel.org/stable/c/d95cea9298be1ba8876e3f156be96d3a492085ca","https://git.kernel.org/stable/c/033370ffb3c9c0264d19f8ba9ef769523266589a","https://git.kernel.org/stable/c/b3cb8cae530b2727d8245684148bb49425f6765c","https://git.kernel.org/stable/c/8141a2dc70080eda1aedc0389ed2db2b292af5bd"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46053.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46053","state":"PUBLISHED","datePublished":"2026-05-27T12:57:11.870Z","dateUpdated":"2026-08-05T12:29:21.209Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.094Z"},"containers":{"cna":{"title":"net: rds: fix MR cleanup on copy error","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rds: fix MR cleanup on copy error\n\n__rds_rdma_map() hands sg/pages ownership to the transport after\nget_mr() succeeds. If copying the generated cookie back to user space\nfails after that point, the error path must not free those resources\nagain before dropping the MR reference.\n\nRemove the duplicate unpin/free from the put_user() failure branch so\nthat MR teardown is handled only through the existing final cleanup\npath."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"91a44b406bc1f9e1c5da0cb7d0d5991b43b79147","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"106dc689206610cfa2098f593fdd1e020c997835","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"ec55a86f7fba7d9111df94b9c11a4755ed492995","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"8fdbb6262a4a3ed44a0830a7793903b54bb27bdc","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"d95cea9298be1ba8876e3f156be96d3a492085ca","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"033370ffb3c9c0264d19f8ba9ef769523266589a","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"b3cb8cae530b2727d8245684148bb49425f6765c","versionType":"git"},{"version":"0d4597c8c5abdeeaf50774066c16683f30184dc8","status":"affected","lessThan":"8141a2dc70080eda1aedc0389ed2db2b292af5bd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.258","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.209","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.175","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.140","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.86","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/rdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/91a44b406bc1f9e1c5da0cb7d0d5991b43b79147"},{"url":"https://git.kernel.org/stable/c/106dc689206610cfa2098f593fdd1e020c997835"},{"url":"https://git.kernel.org/stable/c/ec55a86f7fba7d9111df94b9c11a4755ed492995"},{"url":"https://git.kernel.org/stable/c/8fdbb6262a4a3ed44a0830a7793903b54bb27bdc"},{"url":"https://git.kernel.org/stable/c/d95cea9298be1ba8876e3f156be96d3a492085ca"},{"url":"https://git.kernel.org/stable/c/033370ffb3c9c0264d19f8ba9ef769523266589a"},{"url":"https://git.kernel.org/stable/c/b3cb8cae530b2727d8245684148bb49425f6765c"},{"url":"https://git.kernel.org/stable/c/8141a2dc70080eda1aedc0389ed2db2b292af5bd"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is triggered through the local `setsockopt(SOL_RDS, RDS_GET_MR/RDS_GET_MR_FOR_DEST)` syscall on an RDS socket (MR-registration control plane); it is not reachable from a remote peer's network packets.\nAC:L - Once an RDMA-capable RDS socket is bound, the double-free is 100% deterministic and the attacker fully controls the trigger by supplying a bad `cookie_addr` so `put_user()` faults; there is no race or attacker-uncontrolled condition.\nPR:L - Creating an AF_RDS socket has no capability check (module auto-loads) and `can_do_mlock()` passes for normal users by default, so any unprivileged local user on a host with RDMA hardware can reach the path.\nUI:N - The attacker triggers the entire sequence with its own syscalls; no action by another user or victim is required.\nS:U - The double-free corrupts the kernel slab/page allocator within the kernel's own security authority and does not cross a virtualization or IOMMU boundary.\nC:H - The double-free of the `sg` slab object and the page-refcount underflow yield use-after-free/cross-object primitives that can be groomed into arbitrary kernel-memory reads, enabling significant information disclosure.\nI:H - A double `kfree()` corrupts the SLUB freelist and the page-refcount underflow allows reuse of an in-use physical page, both classic primitives for arbitrary kernel write and privilege escalation.\nA:H - The double-free and page-refcount underflow readily cause heap corruption, freelist poisoning, and kernel panic/oops."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:29:21.209Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.10.258"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.15.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.1.175"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.6.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.12.86"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.18.27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.0.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}