# CVE-2022-50348: nfsd: Fix a memory leak in an error handling path

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-16T16:11:40.617Z
- Modified: 2026-06-17T05:23:17.447Z
- 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:

nfsd: Fix a memory leak in an error handling path

If this memdup_user() call fails, the memory allocated in a previous call
a few lines above should be freed. Otherwise it leaks.

(As written by CVE List.)

## Affected

- Linux Linux: from 6ee95d1c899186c0798cafd25998d436bcdb9618 before acc393aecda05bf64ed13b732931462e07a1bf08; from 6ee95d1c899186c0798cafd25998d436bcdb9618 before e060c4b9f33c1fca74df26d57a98e784295327e6; from 6ee95d1c899186c0798cafd25998d436bcdb9618 before aed8816305575b38dcc77feb6f1bc1d0ed32f5b8; from 6ee95d1c899186c0798cafd25998d436bcdb9618 before 733dd17158f96aaa25408dc39bbb2738fda9300e; from 6ee95d1c899186c0798cafd25998d436bcdb9618 before cc3bca2110ac85cd964da997ef83d84cab0d49fb; from 6ee95d1c899186c0798cafd25998d436bcdb9618 before fd1ef88049de09bc70d60b549992524cfc0e66ff; 5.4 (not affected: before 5.4; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.4 before 5.4.220; from 5.5 before 5.10.150; from 5.11 before 5.15.75; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/acc393aecda05bf64ed13b732931462e07a1bf08> (patch)
- <https://git.kernel.org/stable/c/e060c4b9f33c1fca74df26d57a98e784295327e6> (patch)
- <https://git.kernel.org/stable/c/aed8816305575b38dcc77feb6f1bc1d0ed32f5b8> (patch)
- <https://git.kernel.org/stable/c/733dd17158f96aaa25408dc39bbb2738fda9300e> (patch)
- <https://git.kernel.org/stable/c/cc3bca2110ac85cd964da997ef83d84cab0d49fb> (patch)
- <https://git.kernel.org/stable/c/fd1ef88049de09bc70d60b549992524cfc0e66ff> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-50348 · Whole record: https://cve.day/CVE-2022-50348.json · Rebuilt by cve.day 2026-11-25T22:58:21.175Z
