{"id":"CVE-2025-39928","aliases":["CVE-2025-39928"],"related":[],"kind":"vulnerability","state":"published","title":"i2c: rtl9300: ensure data length is within supported range","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: rtl9300: ensure data length is within supported range\n\nAdd an explicit check for the xfer length to 'rtl9300_i2c_config_xfer'\nto ensure the data length isn't within the supported range. In\nparticular a data length of 0 is not supported by the hardware and\ncauses unintended or destructive behaviour.\n\nThis limitation becomes obvious when looking at the register\ndocumentation [1]. 4 bits are reserved for DATA_WIDTH and the value\nof these 4 bits is used as N + 1, allowing a data length range of\n1 <= len <= 16.\n\nAffected by this is the SMBus Quick Operation which works with a data\nlength of 0. Passing 0 as the length causes an underflow of the value\ndue to:\n\n(len - 1) & 0xf\n\nand effectively specifying a transfer length of 16 via the registers.\nThis causes a 16-byte write operation instead of a Quick Write. For\nexample, on SFP modules without write-protected EEPROM this soft-bricks\nthem by overwriting some initial bytes.\n\nFor completeness, also add a quirk for the zero length.\n\n[1] https://svanheule.net/realtek/longan/register/i2c_mst1_ctrl2","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: rtl9300: ensure data length is within supported range\n\nAdd an explicit check for the xfer length to 'rtl9300_i2c_config_xfer'\nto ensure the data length isn't within the supported range. In\nparticular a data length of 0 is not supported by the hardware and\ncauses unintended or destructive behaviour.\n\nThis limitation becomes obvious when looking at the register\ndocumentation [1]. 4 bits are reserved for DATA_WIDTH and the value\nof these 4 bits is used as N + 1, allowing a data length range of\n1 <= len <= 16.\n\nAffected by this is the SMBus Quick Operation which works with a data\nlength of 0. Passing 0 as the length causes an underflow of the value\ndue to:\n\n(len - 1) & 0xf\n\nand effectively specifying a transfer length of 16 via the registers.\nThis causes a 16-byte write operation instead of a Quick Write. For\nexample, on SFP modules without write-protected EEPROM this soft-bricks\nthem by overwriting some initial bytes.\n\nFor completeness, also add a quirk for the zero length.\n\n[1] https://svanheule.net/realtek/longan/register/i2c_mst1_ctrl2","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ni2c: rtl9300: asegurar que la longitud de los datos esté dentro del rango soportado\n\nAñadir una verificación explícita para la longitud de la transferencia a 'rtl9300_i2c_config_xfer' para asegurar que la longitud de los datos esté dentro del rango soportado. En particular, una longitud de datos de 0 no es soportada por el hardware y causa un comportamiento no deseado o destructivo.\n\nEsta limitación se hace obvia al observar la documentación del registro [1]. 4 bits están reservados para DATA_WIDTH y el valor de estos 4 bits se usa como N + 1, permitiendo un rango de longitud de datos de 1 <= len menor o igual que 16.\n\nAfectada por esto es la Operación Rápida SMBus que funciona con una longitud de datos de 0. Pasar 0 como longitud causa un desbordamiento negativo del valor debido a:\n\n(len - 1) & 0xf\n\ny especificando efectivamente una longitud de transferencia de 16 a través de los registros. Esto causa una operación de escritura de 16 bytes en lugar de una Escritura Rápida. Por ejemplo, en módulos SFP sin EEPROM protegida contra escritura, esto los inutiliza parcialmente al sobrescribir algunos bytes iniciales.\n\nPara completar, añadir también una peculiaridad para la longitud cero.\n\n[1] HTTPS://svanheule.net/realtek/longan/register/i2c_mst1_ctrl2","source":"nvd"}],"published":"2025-10-01T08:07:15.530Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"type":"git","introduced":"c366be720235301fdadf67e6f1ea6ff32669c074","fixed":"c91382328fc89f73144d5582f2d8f1dd3e41c8f7","status":"affected"},{"type":"git","introduced":"c366be720235301fdadf67e6f1ea6ff32669c074","fixed":"06418cb5a1a542a003fdb4ad8e76ea542d57cfba","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.16.8","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.13","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c91382328fc89f73144d5582f2d8f1dd3e41c8f7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06418cb5a1a542a003fdb4ad8e76ea542d57cfba","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T17:39:24.283Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39928","url":"https://www.cve.org/CVERecord?id=CVE-2025-39928","licence":"CVE Terms of Use","modified":"2026-08-05T12:06:07.320Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39928","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39928","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.397Z","epss":{"score":0.00134,"percentile":0.03116,"date":"2026-12-01T12:00:22.000Z"}}