« Volver al listado

CVE-2026-89596

Estado: RecibidaAlta (7.1)—

In the Linux kernel, the following vulnerability has been resolved:

forcedeth: fix off-by-one when saving/restoring non-PCI config space

nv_suspend() and nv_resume() walk the non-PCI configuration space with

which runs one iteration too many. saved_config_space is declared as

and NV_PCI_REGSZ_VER3 is equal to NV_PCI_REGSZ_MAX (0x604), so on a VER3 device register_size/sizeof(u32) is exactly the array length and the last iteration addresses one element past the end.

The element it lands on is np->name_rx[0..3]: saved_config_space[] is followed immediately by char name_rx[IFNAMSIZ + 3], and char needs no padding.

Leer descripción completaMostrar menos

Nothing observable is corrupted by that, because nv_request_irq() rewrites name_rx with sprintf() before it is ever passed to request_irq(). The bug is the out-of-bounds access itself, which UBSAN reports and which CONFIG_UBSAN_TRAP=y turns into a trap that aborts the running kernel code, plus an MMIO read and, on resume, an MMIO writel() to base + 0x604, one dword past the range the driver mapped:

VER1 and VER2 devices stay inside the array, but they too get the stray read and the stray write one dword past their own window.

Caught by UBSAN on an Apple Macmini3,1 (MCP79) during a deep S3 cycle. The splat below is trimmed: the build path in the file name, the CPU and taint lines, the Workqueue line, the "?" hint frames, and the frames below device_suspend are all cut. The kernel was tainted, with an out-of-tree nouveau and CPU_OUT_OF_SPEC; forcedeth itself was the stock module.

Both loops are hit. UBSAN reports each source location only once per module load (__ubsan_handle_out_of_bounds() calls suppress_report(), which does test_and_set_bit(REPORTED_BIT, ...) on the struct source_location), so the two splats land in the first S3 cycle after the module is loaded and later cycles are silent even though the access still runs off the end every time. In that first cycle line 6225 is reported from pci_pm_suspend and line 6240 from pci_pm_resume.

The same off-by-one was fixed in nv_get_regs() by commit ba9aa134287f ("forcedeth: fix buffer overflow") in 2012; these two loops were missed. The suspend and resume side was reported on LKML in September 2013 by Marc Weber, with the same analysis and the same one-character fix, but the patch was attached rather than sent inline and the thread ended there.

Use < instead of <=, which saves and restores exactly register_size bytes.

Detalles técnicos trazas, registros y código del informe original
	for (i = 0; i <= np->register_size/sizeof(u32); i++)

	u32 saved_config_space[NV_PCI_REGSZ_MAX/4];

	np->base = ioremap(addr, np->register_size);

  UBSAN: array-index-out-of-bounds in drivers/net/ethernet/nvidia/forcedeth.c:6225:25
  index 385 is out of range for type 'u32 [385]'
  Call Trace:
   dump_stack_lvl+0x5d/0x80
   ubsan_epilogue+0x5/0x2b
   __ubsan_handle_out_of_bounds.cold+0x54/0x59
   __this_module+0xe398c/0xe9010 [forcedeth]
   pci_pm_suspend+0x80/0x170
   dpm_run_callback+0x51/0x160
   device_suspend+0x1a2/0x4a0
   ...

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

🎯 Técnicas ATT&CK

Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.

Acceso local sin interacción (AV:L/PR:L/UI:N) permite escalar privilegios mediante off-by-one. El out-of-bounds en lectura/escritura de MMIO causa DoS (trap del kernel) y corrupción de memoria potencial.

Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.

🛡️ Mitigaciones ATT&CK que cubren estas técnicas

Tecnologías afectadas (1)

⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2026-89596",
  "cveTags": [],
  "metrics": {
    "cvssMetricV31": [
      {
        "type": "Secondary",
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "cvssData": {
          "scope": "UNCHANGED",
          "version": "3.1",
          "baseScore": 7.1,
          "attackVector": "LOCAL",
          "baseSeverity": "HIGH",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H",
          "integrityImpact": "HIGH",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "confidentialityImpact": "NONE"
        },
        "impactScore": 5.2,
        "exploitabilityScore": 1.8
      }
    ]
  },
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "effd589568b2c4399894a23000286210c60af6d7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "702aa4a44c87026b97b1da5c5ca80e1fa8a9875a",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "fc71c6c3d3e3bb17474dcd1162aea6783a452a64",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "c4d5953582463f45e48b14ef9815e5fb636f7e1f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "9379f8527ca60d92715c90b32f1b477de9ec32cb",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "0c3f4544ff3873594c8af1b907b4ac4e6d5ce005",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "c4f196bfeedd71e56aba4b63bd8f919edb2f7056",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1a1ca86158eee303af5270338695f90bc7ae02b3",
              "lessThan": "9393f1d656a79693e0c123ff7bc7c5c0f708046d",
              "versionType": "git"
            }
          ],
          "programFiles": [
            "drivers/net/ethernet/nvidia/forcedeth.c"
          ],
          "defaultStatus": "unaffected"
        },
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.27"
            },
            {
              "status": "unaffected",
              "version": "0",
              "lessThan": "2.6.27",
              "versionType": "semver"
            },
            {
              "status": "unaffected",
              "version": "5.10.270",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "status": "unaffected",
              "version": "5.15.221",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "status": "unaffected",
              "version": "6.1.188",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "status": "unaffected",
              "version": "6.6.157",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "status": "unaffected",
              "version": "6.12.109",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "status": "unaffected",
              "version": "6.18.50",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "status": "unaffected",
              "version": "7.2.4",
              "versionType": "semver",
              "lessThanOrEqual": "7.2.*"
            },
            {
              "status": "unaffected",
              "version": "7.3-rc1",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ],
          "programFiles": [
            "drivers/net/ethernet/nvidia/forcedeth.c"
          ],
          "defaultStatus": "affected"
        }
      ]
    }
  ],
  "published": "2026-09-11T20:19:44.310",
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/0c3f4544ff3873594c8af1b907b4ac4e6d5ce005",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/702aa4a44c87026b97b1da5c5ca80e1fa8a9875a",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/9379f8527ca60d92715c90b32f1b477de9ec32cb",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/9393f1d656a79693e0c123ff7bc7c5c0f708046d",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c4d5953582463f45e48b14ef9815e5fb636f7e1f",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/c4f196bfeedd71e56aba4b63bd8f919edb2f7056",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/effd589568b2c4399894a23000286210c60af6d7",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/fc71c6c3d3e3bb17474dcd1162aea6783a452a64",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "vulnStatus": "Received",
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nforcedeth: fix off-by-one when saving/restoring non-PCI config space\n\nnv_suspend() and nv_resume() walk the non-PCI configuration space with\n\n\tfor (i = 0; i <= np->register_size/sizeof(u32); i++)\n\nwhich runs one iteration too many. saved_config_space is declared as\n\n\tu32 saved_config_space[NV_PCI_REGSZ_MAX/4];\n\nand NV_PCI_REGSZ_VER3 is equal to NV_PCI_REGSZ_MAX (0x604), so on a VER3\ndevice register_size/sizeof(u32) is exactly the array length and the last\niteration addresses one element past the end.\n\nThe element it lands on is np->name_rx[0..3]: saved_config_space[] is\nfollowed immediately by char name_rx[IFNAMSIZ + 3], and char needs no\npadding. Nothing observable is corrupted by that, because nv_request_irq()\nrewrites name_rx with sprintf() before it is ever passed to request_irq().\nThe bug is the out-of-bounds access itself, which UBSAN reports and which\nCONFIG_UBSAN_TRAP=y turns into a trap that aborts the running kernel code,\nplus an MMIO read and, on resume, an MMIO writel() to base + 0x604, one\ndword past the range the driver mapped:\n\n\tnp->base = ioremap(addr, np->register_size);\n\nVER1 and VER2 devices stay inside the array, but they too get the stray\nread and the stray write one dword past their own window.\n\nCaught by UBSAN on an Apple Macmini3,1 (MCP79) during a deep S3 cycle.\nThe splat below is trimmed: the build path in the file name, the CPU\nand taint lines, the Workqueue line, the \"?\" hint frames, and the\nframes below device_suspend are all cut. The kernel was tainted, with\nan out-of-tree nouveau and CPU_OUT_OF_SPEC; forcedeth itself was the\nstock module.\n\n  UBSAN: array-index-out-of-bounds in drivers/net/ethernet/nvidia/forcedeth.c:6225:25\n  index 385 is out of range for type 'u32 [385]'\n  Call Trace:\n   dump_stack_lvl+0x5d/0x80\n   ubsan_epilogue+0x5/0x2b\n   __ubsan_handle_out_of_bounds.cold+0x54/0x59\n   __this_module+0xe398c/0xe9010 [forcedeth]\n   pci_pm_suspend+0x80/0x170\n   dpm_run_callback+0x51/0x160\n   device_suspend+0x1a2/0x4a0\n   ...\n\nBoth loops are hit. UBSAN reports each source location only once per module\nload (__ubsan_handle_out_of_bounds() calls suppress_report(), which does\ntest_and_set_bit(REPORTED_BIT, ...) on the struct source_location), so the\ntwo splats land in the first S3 cycle after the module is loaded and later\ncycles are silent even though the access still runs off the end every time.\nIn that first cycle line 6225 is reported from pci_pm_suspend and line 6240\nfrom pci_pm_resume.\n\nThe same off-by-one was fixed in nv_get_regs() by commit ba9aa134287f\n(\"forcedeth: fix buffer overflow\") in 2012; these two loops were missed.\nThe suspend and resume side was reported on LKML in September 2013 by Marc\nWeber, with the same analysis and the same one-character fix, but the patch\nwas attached rather than sent inline and the thread ended there.\n\nUse < instead of <=, which saves and restores exactly register_size bytes."
    }
  ],
  "lastModified": "2026-09-14T13:19:13.637",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}