{"id":"CVE-2022-48632","state":"PUBLISHED","title":"i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()\n\nmemcpy() is called in a loop while 'operation->length' upper bound\nis not checked and 'data_idx' also increments.","publishedAt":"2024-04-28T12:59:10.481Z","updatedAt":"2026-08-05T08:51:34.167Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"48ee0a864d1af02eea98fc825cc230d61517a71e","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"dc2a0c587006f29b724069740c48654b9dcaebd2","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"3b5ab5fbe69ebbee5692c72b05071a43fc0655d8","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"de24aceb07d426b6f1c59f33889d6a964770547b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-mlxbf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.146","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.71","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.12","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-mlxbf.c"]}],"references":["https://git.kernel.org/stable/c/48ee0a864d1af02eea98fc825cc230d61517a71e","https://git.kernel.org/stable/c/dc2a0c587006f29b724069740c48654b9dcaebd2","https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8","https://git.kernel.org/stable/c/de24aceb07d426b6f1c59f33889d6a964770547b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48632.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48632","state":"PUBLISHED","datePublished":"2024-04-28T12:59:10.481Z","dateUpdated":"2026-08-05T08:51:34.167Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-25T13:44:28.315Z"},"containers":{"cna":{"title":"i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()\n\nmemcpy() is called in a loop while 'operation->length' upper bound\nis not checked and 'data_idx' also increments."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"48ee0a864d1af02eea98fc825cc230d61517a71e","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"dc2a0c587006f29b724069740c48654b9dcaebd2","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"3b5ab5fbe69ebbee5692c72b05071a43fc0655d8","versionType":"git"},{"version":"b5b5b32081cd206baa6e58cca7f112d9723785d6","status":"affected","lessThan":"de24aceb07d426b6f1c59f33889d6a964770547b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-mlxbf.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.146","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.71","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.12","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i2c/busses/i2c-mlxbf.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/48ee0a864d1af02eea98fc825cc230d61517a71e"},{"url":"https://git.kernel.org/stable/c/dc2a0c587006f29b724069740c48654b9dcaebd2"},{"url":"https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8"},{"url":"https://git.kernel.org/stable/c/de24aceb07d426b6f1c59f33889d6a964770547b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The overflow is in the BlueField I2C master SMBus path (mlxbf_i2c_smbus_xfer → mlxbf_i2c_smbus_start_transaction), reached via local /dev/i2c-* I2C_SMBUS ioctls or in-kernel I2C clients on the DPU—not via network packets or physical bus injection.\nAC:L - An attacker who can issue SMBus transactions supplies the operation lengths and write buffers directly; no race, probabilistic memory layout, or other attacker-uncontrollable condition is required to exercise the unbounded memcpy into the stack buffer.\nPR:L - i2cdev_open() performs no capability check—access is only DAC on /dev/i2c-*. On BlueField management deployments, i2c group or otherwise relaxed device permissions are a realistic worst case, so a non-root local user can reach the path (higher severity than assuming root-only 0600).\nUI:N - The attacker triggers the vulnerable ioctl/transaction path themselves; no victim mount, file open, or other interactive action is required.\nS:U - Impact is ordinary in-kernel stack memory corruption on the BlueField host OS authority. The slave/IPMB path is separate and this is not a VM escape, IOMMU bypass, or host/DPU boundary cross.\nC:H - The bug is a stack buffer overflow via memcpy of attacker-controlled SMBus write data into a fixed 128-byte data_desc; such stack corruption is scored as enabling high confidentiality impact (info disclosure / read primitives) under the higher-severity rule.\nI:H - Attacker-controlled out-of-bounds stack writes can overwrite saved return addresses and adjacent stack state, yielding a control-flow/arbitrary-write primitive and Integrity High for this class of memory corruption.\nA:H - Corrupting the kernel stack in mlxbf_i2c_smbus_start_transaction reliably causes oops/panic or otherwise denies service, which is Availability High under kernel CVSS guidance."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:51:34.167Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.146"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.71"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/48ee0a864d1af02eea98fc825cc230d61517a71e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/dc2a0c587006f29b724069740c48654b9dcaebd2","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3b5ab5fbe69ebbee5692c72b05071a43fc0655d8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/de24aceb07d426b6f1c59f33889d6a964770547b","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:17:55.519Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48632","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:46:27.328258Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:12.457Z"}}]}}}