Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

HID: mcp2221: prevent a buffer overflow in mcp_smbus_write()

CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2022-50131

Published

In the Linux kernel, the following vulnerability has been resolved: HID: mcp2221: prevent a buffer overflow in mcp_smbus_write() Smatch Warning: drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy() '&mcp->txbuf[5]' too small (59 vs 255) drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy() 'buf' too small (34 vs 255) The 'len' variable can take a value between 0-255 as it can come from data->block[0] and it is user data. So add an bound check to prevent a buffer overflow in memcpy().

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2022-50131

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/hid/hid-mcp2221.c"
                    ],
                    "versions": [
                        {
                            "version": "67a95c21463d066060b0f66d65a75d45bb386ffb",
                            "lessThan": "66c8e816f2f2ca4a61b406503bd10bad1b35f72f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "67a95c21463d066060b0f66d65a75d45bb386ffb",
                            "lessThan": "91443c669d280937968f0aa4edefa741cfe35314",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "67a95c21463d066060b0f66d65a75d45bb386ffb",
                            "lessThan": "6402116a7b5ec80fa40fd145a80c813019cd555f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "67a95c21463d066060b0f66d65a75d45bb386ffb",
                            "lessThan": "3c0f8a59f2cc8841ee6653399a77f4f3e6e9a270",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "67a95c21463d066060b0f66d65a75d45bb386ffb",
                            "lessThan": "62ac2473553a00229e67bdf3cb023b62cf7f5a9a",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/hid/hid-mcp2221.c"
                    ],
                    "versions": [
                        {
                            "version": "5.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.137",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.61",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.18",
                            "lessThanOrEqual": "5.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.2",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 05:15 UTC · 274 of 275 readable · 270 fully read · documentation 469/469 current