{"id":"CVE-2026-90226","aliases":["CVE-2026-90226"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: llcp: avoid userspace overflow on invalid optlen","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: avoid userspace overflow on invalid optlen\n\nnfc_llcp_getsockopt() casts optval to (u32 __user *) for put_user(), so\nthe kernel always stores 4 bytes regardless of the caller-supplied\noptlen. The existing min_t(u32, len, sizeof(u32)) only clamps the length\nreported back to userspace; it does not constrain the store. A call with\noptlen < 4 therefore writes past the user buffer, violating the\ngetsockopt(2) contract for all five supported optnames.\n\nReject any call with optlen < sizeof(u32) up front. 'len' is int, so a\nplain size comparison would promote a negative optlen to size_t and slip\npast the check; an explicit 'len < 0' test is added first to catch\nnegative values before the size compare.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: avoid userspace overflow on invalid optlen\n\nnfc_llcp_getsockopt() casts optval to (u32 __user *) for put_user(), so\nthe kernel always stores 4 bytes regardless of the caller-supplied\noptlen. The existing min_t(u32, len, sizeof(u32)) only clamps the length\nreported back to userspace; it does not constrain the store. A call with\noptlen < 4 therefore writes past the user buffer, violating the\ngetsockopt(2) contract for all five supported optnames.\n\nReject any call with optlen < sizeof(u32) up front. 'len' is int, so a\nplain size comparison would promote a negative optlen to size_t and slip\npast the check; an explicit 'len < 0' test is added first to catch\nnegative values before the size compare.","source":"cvelist"}],"published":"2026-09-17T16:07:35.322Z","modified":"2026-10-19T09:19:12.920Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"42859562b7cc4313a84a584f338118edb7087066","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"598dcd53c52f8eeb9dd5382198c03960d5d40fcd","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"7e40f2f5e7bc06c3ddef781180ce4f7994176547","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"35573c6cb081af2f4a7caeea291302aca5484526","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"b4c5abaea06292e1dddb70eac1b51589b32c77a3","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"8bf228fa02b1ed8ce622fb81fa8edc42be9aeb67","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"bd6f1277b62bc1df348ca21739df2bc546fcd493","status":"affected"},{"type":"git","introduced":"26fd76cab2e61cedc5c25f7151fb31b57ddc53c7","fixed":"99985bfa8336fadcc69190ba2dcbd5386af3d661","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/42859562b7cc4313a84a584f338118edb7087066","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/598dcd53c52f8eeb9dd5382198c03960d5d40fcd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e40f2f5e7bc06c3ddef781180ce4f7994176547","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35573c6cb081af2f4a7caeea291302aca5484526","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4c5abaea06292e1dddb70eac1b51589b32c77a3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8bf228fa02b1ed8ce622fb81fa8edc42be9aeb67","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd6f1277b62bc1df348ca21739df2bc546fcd493","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99985bfa8336fadcc69190ba2dcbd5386af3d661","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90226","url":"https://www.cve.org/CVERecord?id=CVE-2026-90226","licence":"CVE Terms of Use","modified":"2026-10-19T09:00:02.755Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90226","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90226","licence":"Public domain","modified":"2026-10-19T09:19:12.920Z"}],"updatedAt":"2026-11-25T22:59:39.348Z","epss":{"score":0.0021,"percentile":0.11892,"date":"2026-12-01T12:00:22.000Z"}}