{"api_version":"1","generated_at":"2026-11-10T17:21:27+00:00","cve":"CVE-2022-50460","urls":{"html":"https://cve.report/CVE-2022-50460","api":"https://cve.report/api/cve/CVE-2022-50460.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50460","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50460"},"summary":{"title":"cifs: Fix xid leak in cifs_flock()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix xid leak in cifs_flock()\n\nIf not flock, before return -ENOLCK, should free the xid,\notherwise, the xid will be leaked.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-10-01 12:15:39","updated_at":"2026-11-05 21:16:59"},"problem_types":["CWE-401"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/2d08311aa3056a84bfdc09bc47777de6a9b16c30","name":"https://git.kernel.org/stable/c/2d08311aa3056a84bfdc09bc47777de6a9b16c30","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6","name":"https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73","name":"https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb","name":"https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-50460","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50460","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0677992d2af3d65f1c1c21de3323d09d4891537 2d08311aa3056a84bfdc09bc47777de6a9b16c30 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0677992d2af3d65f1c1c21de3323d09d4891537 8905d13b9ede4caa88c577faed832d6c7383f4fb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0677992d2af3d65f1c1c21de3323d09d4891537 f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0677992d2af3d65f1c1c21de3323d09d4891537 575e079c782b9862ec2626403922d041a42e6ed6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.152 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.76 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0.6 6.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"50460","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2022-50460","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-11-05T20:11:21.842483Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-05T20:20:46.684Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/cifs/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2d08311aa3056a84bfdc09bc47777de6a9b16c30","status":"affected","version":"d0677992d2af3d65f1c1c21de3323d09d4891537","versionType":"git"},{"lessThan":"8905d13b9ede4caa88c577faed832d6c7383f4fb","status":"affected","version":"d0677992d2af3d65f1c1c21de3323d09d4891537","versionType":"git"},{"lessThan":"f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73","status":"affected","version":"d0677992d2af3d65f1c1c21de3323d09d4891537","versionType":"git"},{"lessThan":"575e079c782b9862ec2626403922d041a42e6ed6","status":"affected","version":"d0677992d2af3d65f1c1c21de3323d09d4891537","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/cifs/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.5"},{"lessThan":"5.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.152","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.76","versionType":"semver"},{"lessThanOrEqual":"6.0.*","status":"unaffected","version":"6.0.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.152","versionStartIncluding":"5.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.76","versionStartIncluding":"5.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.0.6","versionStartIncluding":"5.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1","versionStartIncluding":"5.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix xid leak in cifs_flock()\n\nIf not flock, before return -ENOLCK, should free the xid,\notherwise, the xid will be leaked."}],"providerMetadata":{"dateUpdated":"2026-05-11T19:19:53.059Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2d08311aa3056a84bfdc09bc47777de6a9b16c30"},{"url":"https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb"},{"url":"https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73"},{"url":"https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6"}],"title":"cifs: Fix xid leak in cifs_flock()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2022-50460","datePublished":"2025-10-01T11:45:32.484Z","dateReserved":"2025-10-01T11:38:45.641Z","dateUpdated":"2026-11-05T20:20:46.684Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-10-01 12:15:39","lastModifiedDate":"2026-11-05 21:16:59","problem_types":["CWE-401"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-05T20:11:21.842483Z","id":"CVE-2022-50460","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.152","matchCriteriaId":"AFE2A429-A1A8-4B68-8F1D-A1595AB6A4F7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.76","matchCriteriaId":"918A4953-6F82-40F5-B7A9-9836905139C1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.0.6","matchCriteriaId":"98F5FA4A-A33F-4FAD-894E-FDC9D295742A"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*","matchCriteriaId":"E7E331DA-1FB0-4DEC-91AC-7DA69D461C11"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"50460","Ordinal":"1","Title":"cifs: Fix xid leak in cifs_flock()","CVE":"CVE-2022-50460","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"50460","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix xid leak in cifs_flock()\n\nIf not flock, before return -ENOLCK, should free the xid,\notherwise, the xid will be leaked.","Type":"Description","Title":"cifs: Fix xid leak in cifs_flock()"}]}}}