Input: zero ff_effect before compat copy in input_ff_effect_from_user
In the Linux kernel, the following vulnerability has been resolved: Input: zero ff_effect before compat copy in input_ff_effect_from_user In the compat path input_ff_effect_from_user() aliases the caller's native struct ff_effect with the smaller struct ff_effect_compat and copies only the compat sized prefix: compat_effect = (struct ff_effect_compat *)effect; if (copy_from_user(compat_effect, buffer, sizeof(struct ff_effect_compat))) The tail of the native structure is never written. Callers pass an uninitialized on-stack object, for example evdev_do_ioctl() for EVIOCSFF, so those bytes keep their previous stack contents. input_ff_upload() then stores the full native structure in ff->effects[id], from where a uinput based force feedback daemon can read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to userspace. Zero the effect before the compat copy.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.271, 5.15.222, 6.1.189, 6.12.112, 6.18.54, 6.6.158, 7.2.8
- CVEs
- CVE-2026-98201
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:26 UTC · Revision 1
Source evidence
Input: zero ff_effect before compat copy in input_ff_effect_from_user
core-osv · Original sourcePublished 6 Oct 2026, 08:44 UTC
In the Linux kernel, the following vulnerability has been resolved: Input: zero ff_effect before compat copy in input_ff_effect_from_user In the compat path input_ff_effect_from_user() aliases the caller's native struct ff_effect with the smaller struct ff_effect_compat and copies only the compat sized prefix: compat_effect = (struct ff_effect_compat *)effect; if (copy_from_user(compat_effect, buffer, sizeof(struct ff_effect_compat))) The tail of the native structure is never written. Callers pass an uninitialized on-stack object, for example evdev_do_ioctl() for EVIOCSFF, so those bytes keep their previous stack contents. input_ff_upload() then stores the full native structure in ff->effects[id], from where a uinput based force feedback daemon can read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to userspace. Zero the effect before the compat copy.
osv:CVE-2026-98201
Kernel
Fixed versions: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8
Complete source record
{
"id": "242e6a6af4d94acd885fef3324d3429a82bf70f5178a9b5a7bece01b189cf02d",
"url": "https://osv.dev/vulnerability/CVE-2026-98201",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Input: zero ff_effect before compat copy in input_ff_effect_from_user",
"summary": "In the Linux kernel, the following vulnerability has been resolved: Input: zero ff_effect before compat copy in input_ff_effect_from_user In the compat path input_ff_effect_from_user() aliases the caller's native struct ff_effect with the smaller struct ff_effect_compat and copies only the compat sized prefix: compat_effect = (struct ff_effect_compat *)effect; if (copy_from_user(compat_effect, buffer, sizeof(struct ff_effect_compat))) The tail of the native structure is never written. Callers pass an uninitialized on-stack object, for example evdev_do_ioctl() for EVIOCSFF, so those bytes keep their previous stack contents. input_ff_upload() then stores the full native structure in ff->effects[id], from where a uinput based force feedback daemon can read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to userspace. Zero the effect before the compat copy.",
"evidence": "osv:CVE-2026-98201",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.271",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.222",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.189",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.158",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.112",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.54",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98201",
"aliases": [
"CVE-2026-98201"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2d56f3a32c0e62f99c043d2579840f9731fe5855"
},
{
"fixed": "ed0905fda39682d3da7937184397d3276abbffa8"
},
{
"fixed": "ec174c2ab1abb76b20fa167c6db848c3d97aa838"
},
{
"fixed": "6c26681c5668c973bd0e951407d670ac60d9cd66"
},
{
"fixed": "c5e573bb095d502be7cbbaa99c26a20984111c6d"
},
{
"fixed": "b878720e8bcaa4cf7163a5081f904dd6baf11b2c"
},
{
"fixed": "0d05b43b55d4784a42ce8fb318175f8ad7d9af5a"
},
{
"fixed": "ed0406e490f48ed180df140fe2a81be26bccb1a9"
},
{
"fixed": "f84819ef8d66931ee3998fee3c4f03230f4cb6cc"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98201.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.29"
},
{
"fixed": "5.10.271"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.222"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.189"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.112"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.54"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98201.json"
}
}
],
"modified": "2026-10-28T02:30:22.176225897Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0d05b43b55d4784a42ce8fb318175f8ad7d9af5a",
"https://git.kernel.org/stable/c/6c26681c5668c973bd0e951407d670ac60d9cd66",
"https://git.kernel.org/stable/c/b878720e8bcaa4cf7163a5081f904dd6baf11b2c",
"https://git.kernel.org/stable/c/c5e573bb095d502be7cbbaa99c26a20984111c6d",
"https://git.kernel.org/stable/c/ec174c2ab1abb76b20fa167c6db848c3d97aa838",
"https://git.kernel.org/stable/c/ed0406e490f48ed180df140fe2a81be26bccb1a9",
"https://git.kernel.org/stable/c/ed0905fda39682d3da7937184397d3276abbffa8",
"https://git.kernel.org/stable/c/f84819ef8d66931ee3998fee3c4f03230f4cb6cc",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98201.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98201",
"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/2026/98xxx/CVE-2026-98201.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98201",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 488384,
"published_at": "2026-10-06T08:44:38.952+00:00"
}