{"id":"CVE-2022-49103","summary":"NFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4.2: fix reference count leaks in _nfs42_proc_copy_notify()\n\n[You don't often get email from xiongx18@fudan.edu.cn. Learn why this is important at http://aka.ms/LearnAboutSenderIdentification.]\n\nThe reference counting issue happens in two error paths in the\nfunction _nfs42_proc_copy_notify(). In both error paths, the function\nsimply returns the error code and forgets to balance the refcount of\nobject `ctx`, bumped by get_nfs_open_context() earlier, which may\ncause refcount leaks.\n\nFix it by balancing refcount of the `ctx` object before the function\nreturns in both error paths.","modified":"2026-04-02T08:27:17.900922Z","published":"2025-02-26T01:54:52.530Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49103.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9b9feec97c1fc7dd9bb69f62c4905cddf1801599"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b37f482ba9f0e6382c188e3fccf6c4b2fdc938eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7f114edd54326f730a754547e7cfb197b5bc132"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f46f632f9cfae4b2e3635fa58840a8ec584c42e3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb73bf6305f4eb8f0cf9a61ee874d55f019d6dc4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49103.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49103"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0491567b51efeca807da1125a1a0d5193875e286"},{"fixed":"9b9feec97c1fc7dd9bb69f62c4905cddf1801599"},{"fixed":"b37f482ba9f0e6382c188e3fccf6c4b2fdc938eb"},{"fixed":"fb73bf6305f4eb8f0cf9a61ee874d55f019d6dc4"},{"fixed":"f46f632f9cfae4b2e3635fa58840a8ec584c42e3"},{"fixed":"b7f114edd54326f730a754547e7cfb197b5bc132"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49103.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}