CVE-2022-49103

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

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

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 [email protected]. 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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Published
2025-02-26T01:54Z
EPSS history
Timeline
  • 26 FEB 01:54Z
    NFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()
    cvelistv5