media: s5p-mfc: Clear workbit to handle error condition
In the Linux kernel, the following vulnerability has been resolved: media: s5p-mfc: Clear workbit to handle error condition During error on CLOSE_INSTANCE command, ctx_work_bits was not getting cleared. During consequent mfc execution NULL pointer dereferencing of this context led to kernel panic. This patch fixes this issue by making sure to clear ctx_work_bits always.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.270, 5.10.163, 5.15.87, 5.4.229, 6.0.18, 6.1.4
- CVEs
- CVE-2022-50786
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 00:29 UTC · Revision 1
Source evidence
media: s5p-mfc: Clear workbit to handle error condition
core-osv · Original sourcePublished 30 Dec 2025, 12:03 UTC
In the Linux kernel, the following vulnerability has been resolved: media: s5p-mfc: Clear workbit to handle error condition During error on CLOSE_INSTANCE command, ctx_work_bits was not getting cleared. During consequent mfc execution NULL pointer dereferencing of this context led to kernel panic. This patch fixes this issue by making sure to clear ctx_work_bits always.
osv:CVE-2022-50786
Kernel
Fixed versions: 4.19.270, 5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4
Complete source record
{
"id": "6b70f119e17856837b0caebfe4a13198901e76b56273b7fd30e461a649a14298",
"url": "https://osv.dev/vulnerability/CVE-2022-50786",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "media: s5p-mfc: Clear workbit to handle error condition",
"summary": "In the Linux kernel, the following vulnerability has been resolved: media: s5p-mfc: Clear workbit to handle error condition During error on CLOSE_INSTANCE command, ctx_work_bits was not getting cleared. During consequent mfc execution NULL pointer dereferencing of this context led to kernel panic. This patch fixes this issue by making sure to clear ctx_work_bits always.",
"evidence": "osv:CVE-2022-50786",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.270",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.229",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.163",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.87",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.18",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50786",
"aliases": [
"CVE-2022-50786"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "818cd91ab8c6e42c2658c8e61f8462637c6f586b"
},
{
"fixed": "12242bd13ce68acd571b2cce6ab302e154e8a4ee"
},
{
"fixed": "640075400c7c577b0f5369b935e22a588773fafa"
},
{
"fixed": "8ff64edf9d16e8c277dcc8189794763624e6b4b8"
},
{
"fixed": "ff27800c0a6d81571671b33f696109804d015409"
},
{
"fixed": "09c1fbbe532758e4046c20829f4c0c50b99332dc"
},
{
"fixed": "bd1b72f0c39a0d791a087b4e643701a48328ba8e"
},
{
"fixed": "d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50786.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.16.0"
},
{
"fixed": "4.19.270"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.229"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.163"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.87"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.0.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50786.json"
}
}
],
"modified": "2026-10-28T02:30:52.147716418Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/09c1fbbe532758e4046c20829f4c0c50b99332dc",
"https://git.kernel.org/stable/c/12242bd13ce68acd571b2cce6ab302e154e8a4ee",
"https://git.kernel.org/stable/c/640075400c7c577b0f5369b935e22a588773fafa",
"https://git.kernel.org/stable/c/8ff64edf9d16e8c277dcc8189794763624e6b4b8",
"https://git.kernel.org/stable/c/bd1b72f0c39a0d791a087b4e643701a48328ba8e",
"https://git.kernel.org/stable/c/d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b",
"https://git.kernel.org/stable/c/ff27800c0a6d81571671b33f696109804d015409",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50786.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50786",
"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-50786.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50786",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 520973,
"published_at": "2025-12-30T12:03:22.909+00:00"
}