MediumFix available
nfsd: Fix a memory leak in an error handling path
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.150, 5.15.75, 5.19.17, 5.4.220, 6.0.3
- CVEs
- CVE-2022-50348
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 04:24 UTC · Revision 1
Source evidence
nfsd: Fix a memory leak in an error handling path
core-osv · Original sourcePublished 16 Sept 2025, 16:11 UTC
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.
osv:CVE-2022-50348
Kernel
Fixed versions: 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3
Complete source record
{
"id": "f0b8ace82184763fca1a3ed2af68117a648d01e708b5a91d44a23a947e996e22",
"url": "https://osv.dev/vulnerability/CVE-2022-50348",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nfsd: Fix a memory leak in an error handling path",
"summary": "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.",
"evidence": "osv:CVE-2022-50348",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.220",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.150",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.75",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.17",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2022-50348",
"aliases": [
"CVE-2022-50348"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6ee95d1c899186c0798cafd25998d436bcdb9618"
},
{
"fixed": "acc393aecda05bf64ed13b732931462e07a1bf08"
},
{
"fixed": "e060c4b9f33c1fca74df26d57a98e784295327e6"
},
{
"fixed": "aed8816305575b38dcc77feb6f1bc1d0ed32f5b8"
},
{
"fixed": "733dd17158f96aaa25408dc39bbb2738fda9300e"
},
{
"fixed": "cc3bca2110ac85cd964da997ef83d84cab0d49fb"
},
{
"fixed": "fd1ef88049de09bc70d60b549992524cfc0e66ff"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50348.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.4.0"
},
{
"fixed": "5.4.220"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.150"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.75"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.17"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.20.0"
},
{
"fixed": "6.0.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50348.json"
}
}
],
"modified": "2026-10-28T02:30:42.464174838Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/733dd17158f96aaa25408dc39bbb2738fda9300e",
"https://git.kernel.org/stable/c/acc393aecda05bf64ed13b732931462e07a1bf08",
"https://git.kernel.org/stable/c/aed8816305575b38dcc77feb6f1bc1d0ed32f5b8",
"https://git.kernel.org/stable/c/cc3bca2110ac85cd964da997ef83d84cab0d49fb",
"https://git.kernel.org/stable/c/e060c4b9f33c1fca74df26d57a98e784295327e6",
"https://git.kernel.org/stable/c/fd1ef88049de09bc70d60b549992524cfc0e66ff",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50348.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50348",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50348.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50348",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 510245,
"published_at": "2025-09-16T16:11:40.617+00:00"
}