CVE-2022-49103

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

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0491567b51efeca807da1125a1a0d5193875e286 < 9b9feec97c1fc7dd9bb69f62c4905cddf1801599 ; affected 0491567b51efeca807da1125a1a0d5193875e286 < b37f482ba9f0e6382c188e3fccf6c4b2fdc938eb ; affected 0491567b51efeca807da1125a1a0d5193875e286 < fb73bf6305f4eb8f0cf9a61ee874d55f019d6dc4 ; affected 0491567b51efeca807da1125a1a0d5193875e286 < f46f632f9cfae4b2e3635fa58840a8ec584c42e3 ; affected 0491567b51efeca807da1125a1a0d5193875e286 < b7f114edd54326f730a754547e7cfb197b5bc132
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 5.10.111 ≤ 5.10.* ; unaffected 5.15.34 ≤ 5.15.* ; unaffected 5.16.20 ≤ 5.16.* ; unaffected 5.17.3 ≤ 5.17.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD