# CVE-2021-47538: rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-24T15:09:45.959Z
- Modified: 2026-06-17T04:17:43.160Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

rxrpc: Fix rxrpc_local leak in rxrpc_lookup_peer()

Need to call rxrpc_put_local() for peer candidate before kfree() as it
holds a ref to rxrpc_local.

[DH: v2: Changed to abstract the peer freeing code out into a function]

(As written by CVE List.)

## Affected

- Linux Linux: from e8e51ce79c157188e209e5ea0afaf6b42dd76104 before 913c24af2d13a3fd304462916ee98e298d56bdce; from 9ebeddef58c41bd700419cdcece24cf64ce32276 before 3e70e3a72d80b16094faccbe438cd53761c3503a; from 9ebeddef58c41bd700419cdcece24cf64ce32276 before 60f0b9c42cb80833a03ca57c1c8b078d716e71d1; from 9ebeddef58c41bd700419cdcece24cf64ce32276 before 9469273e616ca8f1b6e3773c5019f21b4c8d828c; from 9ebeddef58c41bd700419cdcece24cf64ce32276 before beacff50edbd6c9659a6f15fc7f6126909fade29; 9b7fc03b4cdbfb668b6891967105258691c6d3b5; from 4.19.82 before 4.19.220; from 5.3.9 before 5.4; 5.4 (not affected: before 5.4; from 4.19.220 up to 4.19.*; from 5.4.164 up to 5.4.*; from 5.10.84 up to 5.10.*; from 5.15.7 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 4.19.82 before 4.19.220; from 5.3.9 before 5.4; from 5.4.1 before 5.4.164; from 5.5 before 5.10.84; from 5.11 before 5.15.7; 5.4; 5.16

## References

- <https://git.kernel.org/stable/c/913c24af2d13a3fd304462916ee98e298d56bdce> (patch)
- <https://git.kernel.org/stable/c/3e70e3a72d80b16094faccbe438cd53761c3503a> (patch)
- <https://git.kernel.org/stable/c/60f0b9c42cb80833a03ca57c1c8b078d716e71d1> (patch)
- <https://git.kernel.org/stable/c/9469273e616ca8f1b6e3773c5019f21b4c8d828c> (patch)
- <https://git.kernel.org/stable/c/beacff50edbd6c9659a6f15fc7f6126909fade29> (patch)

## Sources

- CVE List: [CVE-2021-47538](https://www.cve.org/CVERecord?id=CVE-2021-47538), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2021-47538](https://nvd.nist.gov/vuln/detail/CVE-2021-47538), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47538 · Whole record: https://cve.day/CVE-2021-47538.json · Rebuilt by cve.day 2026-11-25T22:58:08.905Z
