HighFix available
lockd: set other missing fields when unlocking files
Type: advisorySources: OSV
In the Linux kernel, the following vulnerability has been resolved: lockd: set other missing fields when unlocking files vfs_lock_file() expects the struct file_lock to be fully initialised by the caller. Re-exported NFSv3 has been seen to Oops if the fl_file field is NULL.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.86, 6.0.16, 6.1.2
- CVEs
- CVE-2022-50302
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:14 UTC · Revision 1
Source evidence
lockd: set other missing fields when unlocking files
core-osv · Original sourcePublished 15 Sept 2025, 14:45 UTC
In the Linux kernel, the following vulnerability has been resolved: lockd: set other missing fields when unlocking files vfs_lock_file() expects the struct file_lock to be fully initialised by the caller. Re-exported NFSv3 has been seen to Oops if the fl_file field is NULL.
osv:CVE-2022-50302
Kernel
Fixed versions: 5.15.86, 6.0.16, 6.1.2
Complete source record
{
"id": "0a4ede6e1b8ce21a3f2e11005bfebc0c1c35594f5752734eb0c4e344488edfc9",
"url": "https://osv.dev/vulnerability/CVE-2022-50302",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "lockd: set other missing fields when unlocking files",
"summary": "In the Linux kernel, the following vulnerability has been resolved: lockd: set other missing fields when unlocking files vfs_lock_file() expects the struct file_lock to be fully initialised by the caller. Re-exported NFSv3 has been seen to Oops if the fl_file field is NULL.",
"evidence": "osv:CVE-2022-50302",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.86",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-50302",
"aliases": [
"CVE-2022-50302"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/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": "486c1acf14233b1ff7b37e6f026a737a2f7f53f1"
},
{
"fixed": "31c93ee5f1e4dc278b562e20f3c3274ac34997f3"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9c3eef773cf4a8a18f959234bbb4c0a55c31ab71"
},
{
"fixed": "95d42a8d3d4ae84a0bd3ee23e1fee240cdf0a9f0"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "aec158242b87a43d83322e99bc71ab4428e5ab79"
},
{
"fixed": "688575aef211b0986fc51010116f5888a99d76a2"
},
{
"fixed": "d7aa9f7778316beb690f6e2763b6d672ad8b256f"
},
{
"fixed": "18ebd35b61b4693a0ddc270b6d4f18def232e770"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.56"
},
{
"fixed": "5.15.86"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.18.13"
},
{
"fixed": "5.19"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "58c3f48a540b821b3253e2dc31c8fa237293ffc9"
}
]
}
],
"versions": [
"v5.15.85",
"v5.15.84",
"v5.15.83",
"v5.15.82",
"v5.15.81",
"v5.15.80",
"v5.15.79",
"v5.15.78",
"v5.15.77",
"v5.15.76",
"v5.15.75",
"v5.15.74",
"v5.15.73",
"v5.15.72",
"v5.15.71",
"v5.15.70",
"v5.15.69",
"v5.15.68",
"v5.15.67",
"v5.15.66",
"v5.15.65",
"v5.15.64",
"v5.15.63",
"v5.15.62",
"v5.15.61",
"v5.15.60",
"v5.15.59",
"v5.15.58",
"v5.15.57",
"v5.15.56",
"v5.18.19",
"v5.18.18",
"v5.18.17",
"v5.18.16",
"v5.18.15",
"v5.18.14",
"v5.18.13"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50302.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.15.86"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "6.1.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50302.json"
}
}
],
"modified": "2026-10-28T02:30:37.201843295Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/18ebd35b61b4693a0ddc270b6d4f18def232e770",
"https://git.kernel.org/stable/c/31c93ee5f1e4dc278b562e20f3c3274ac34997f3",
"https://git.kernel.org/stable/c/688575aef211b0986fc51010116f5888a99d76a2",
"https://git.kernel.org/stable/c/95d42a8d3d4ae84a0bd3ee23e1fee240cdf0a9f0",
"https://git.kernel.org/stable/c/d7aa9f7778316beb690f6e2763b6d672ad8b256f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50302.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50302",
"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-50302.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50302",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504047,
"published_at": "2025-09-15T14:45:57.924+00:00"
}