CVE-2022-49103

NFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()

State
Published
Severity
5.5 Medium
Published
Feb 26, 2025
Updated
May 11, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

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

NFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()

[You don't often get email from xiongx18@fudan.edu.cn. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]

The reference counting issue happens in two error paths in the function _nfs42_proc_copy_notify(). In both error paths, the function simply returns the error code and forgets to balance the refcount of object `ctx`, bumped by get_nfs_open_context() earlier, which may cause refcount leaks.

Fix it by balancing refcount of the `ctx` object before the function returns in both error paths.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0491567b51efeca807da1125a1a0d5193875e286 to before 9b9feec97c1fc7dd9bb69f62c4905cddf1801599Affected
  • 0491567b51efeca807da1125a1a0d5193875e286 to before b37f482ba9f0e6382c188e3fccf6c4b2fdc938ebAffected
  • 0491567b51efeca807da1125a1a0d5193875e286 to before fb73bf6305f4eb8f0cf9a61ee874d55f019d6dc4Affected
  • 0491567b51efeca807da1125a1a0d5193875e286 to before f46f632f9cfae4b2e3635fa58840a8ec584c42e3Affected
  • 0491567b51efeca807da1125a1a0d5193875e286 to before b7f114edd54326f730a754547e7cfb197b5bc132Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.111 through 5.10.*Not affected
  • 5.15.34 through 5.15.*Not affected
  • 5.16.20 through 5.16.*Not affected
  • 5.17.3 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.