{"api_version":"1","generated_at":"2026-09-12T11:23:57+00:00","cve":"CVE-2026-89596","urls":{"html":"https://cve.report/CVE-2026-89596","api":"https://cve.report/api/cve/CVE-2026-89596.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-89596","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89596"},"summary":{"title":"forcedeth: fix off-by-one when saving/restoring non-PCI config space","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-11 20:19:44","updated_at":"2026-09-11 20:19:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9393f1d656a79693e0c123ff7bc7c5c0f708046d","name":"https://git.kernel.org/stable/c/9393f1d656a79693e0c123ff7bc7c5c0f708046d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0c3f4544ff3873594c8af1b907b4ac4e6d5ce005","name":"https://git.kernel.org/stable/c/0c3f4544ff3873594c8af1b907b4ac4e6d5ce005","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9379f8527ca60d92715c90b32f1b477de9ec32cb","name":"https://git.kernel.org/stable/c/9379f8527ca60d92715c90b32f1b477de9ec32cb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c4f196bfeedd71e56aba4b63bd8f919edb2f7056","name":"https://git.kernel.org/stable/c/c4f196bfeedd71e56aba4b63bd8f919edb2f7056","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-89596","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89596","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a1ca86158eee303af5270338695f90bc7ae02b3 9379f8527ca60d92715c90b32f1b477de9ec32cb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a1ca86158eee303af5270338695f90bc7ae02b3 0c3f4544ff3873594c8af1b907b4ac4e6d5ce005 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a1ca86158eee303af5270338695f90bc7ae02b3 c4f196bfeedd71e56aba4b63bd8f919edb2f7056 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1a1ca86158eee303af5270338695f90bc7ae02b3 9393f1d656a79693e0c123ff7bc7c5c0f708046d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.27","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.27 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.109 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.50 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.4 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/nvidia/forcedeth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"9379f8527ca60d92715c90b32f1b477de9ec32cb","status":"affected","version":"1a1ca86158eee303af5270338695f90bc7ae02b3","versionType":"git"},{"lessThan":"0c3f4544ff3873594c8af1b907b4ac4e6d5ce005","status":"affected","version":"1a1ca86158eee303af5270338695f90bc7ae02b3","versionType":"git"},{"lessThan":"c4f196bfeedd71e56aba4b63bd8f919edb2f7056","status":"affected","version":"1a1ca86158eee303af5270338695f90bc7ae02b3","versionType":"git"},{"lessThan":"9393f1d656a79693e0c123ff7bc7c5c0f708046d","status":"affected","version":"1a1ca86158eee303af5270338695f90bc7ae02b3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/nvidia/forcedeth.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.27"},{"lessThan":"2.6.27","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.109","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.50","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.109","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.50","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.4","versionStartIncluding":"2.6.27","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"2.6.27","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-09-11T19:44:58.797Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/9379f8527ca60d92715c90b32f1b477de9ec32cb"},{"url":"https://git.kernel.org/stable/c/0c3f4544ff3873594c8af1b907b4ac4e6d5ce005"},{"url":"https://git.kernel.org/stable/c/c4f196bfeedd71e56aba4b63bd8f919edb2f7056"},{"url":"https://git.kernel.org/stable/c/9393f1d656a79693e0c123ff7bc7c5c0f708046d"}],"title":"forcedeth: fix off-by-one when saving/restoring non-PCI config space","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-89596","datePublished":"2026-09-11T19:44:58.797Z","dateReserved":"2026-09-11T19:38:34.731Z","dateUpdated":"2026-09-11T19:44:58.797Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-11 20:19:44","lastModifiedDate":"2026-09-11 20:19:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"89596","Ordinal":"1","Title":"forcedeth: fix off-by-one when saving/restoring non-PCI config s","CVE":"CVE-2026-89596","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"89596","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"forcedeth: fix off-by-one when saving/restoring non-PCI config s"}]}}}