{"id":"CVE-2026-23180","state":"PUBLISHED","title":"dpaa2-switch: add bounds check for if_id in IRQ handler","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: add bounds check for if_id in IRQ handler\n\nThe IRQ handler extracts if_id from the upper 16 bits of the hardware\nstatus register and uses it to index into ethsw->ports[] without\nvalidation. Since if_id can be any 16-bit value (0-65535) but the ports\narray is only allocated with sw_attr.num_ifs elements, this can lead to\nan out-of-bounds read potentially.\n\nAdd a bounds check before accessing the array, consistent with the\nexisting validation in dpaa2_switch_rx().","publishedAt":"2026-02-14T16:27:11.463Z","updatedAt":"2026-10-19T18:25:34.438Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/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":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"77611cab5bdfff7a070ae574bbfba20a1de99d1b","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"34b56c16efd61325d80bf1d780d0e176be662f59","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"f89e33c9c37f0001b730e23b3b05ab7b1ecface2","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"2447edc367800ba914acf7ddd5d250416b45fb31","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"1b381a638e1851d8cfdfe08ed9cdbec5295b18c9","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"31a7a0bbeb006bac2d9c81a2874825025214b6d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.200","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.163","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"]}],"references":["https://git.kernel.org/stable/c/77611cab5bdfff7a070ae574bbfba20a1de99d1b","https://git.kernel.org/stable/c/34b56c16efd61325d80bf1d780d0e176be662f59","https://git.kernel.org/stable/c/f89e33c9c37f0001b730e23b3b05ab7b1ecface2","https://git.kernel.org/stable/c/2447edc367800ba914acf7ddd5d250416b45fb31","https://git.kernel.org/stable/c/1b381a638e1851d8cfdfe08ed9cdbec5295b18c9","https://git.kernel.org/stable/c/31a7a0bbeb006bac2d9c81a2874825025214b6d8"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23180.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23180","state":"PUBLISHED","datePublished":"2026-02-14T16:27:11.463Z","dateUpdated":"2026-10-19T18:25:34.438Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.984Z"},"containers":{"cna":{"title":"dpaa2-switch: add bounds check for if_id in IRQ handler","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: add bounds check for if_id in IRQ handler\n\nThe IRQ handler extracts if_id from the upper 16 bits of the hardware\nstatus register and uses it to index into ethsw->ports[] without\nvalidation. Since if_id can be any 16-bit value (0-65535) but the ports\narray is only allocated with sw_attr.num_ifs elements, this can lead to\nan out-of-bounds read potentially.\n\nAdd a bounds check before accessing the array, consistent with the\nexisting validation in dpaa2_switch_rx()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"77611cab5bdfff7a070ae574bbfba20a1de99d1b","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"34b56c16efd61325d80bf1d780d0e176be662f59","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"f89e33c9c37f0001b730e23b3b05ab7b1ecface2","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"2447edc367800ba914acf7ddd5d250416b45fb31","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"1b381a638e1851d8cfdfe08ed9cdbec5295b18c9","versionType":"git"},{"version":"24ab724f8a4661b2dc8e696b41df93bdc108f7a1","status":"affected","lessThan":"31a7a0bbeb006bac2d9c81a2874825025214b6d8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.200","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.163","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/77611cab5bdfff7a070ae574bbfba20a1de99d1b"},{"url":"https://git.kernel.org/stable/c/34b56c16efd61325d80bf1d780d0e176be662f59"},{"url":"https://git.kernel.org/stable/c/f89e33c9c37f0001b730e23b3b05ab7b1ecface2"},{"url":"https://git.kernel.org/stable/c/2447edc367800ba914acf7ddd5d250416b45fb31"},{"url":"https://git.kernel.org/stable/c/1b381a638e1851d8cfdfe08ed9cdbec5295b18c9"},{"url":"https://git.kernel.org/stable/c/31a7a0bbeb006bac2d9c81a2874825025214b6d8"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is in a hardware IRQ handler for NXP DPAA2 Ethernet switch hardware. The if_id comes from MC firmware via hardware registers, requiring at minimum local access to the system running this hardware. Not remotely triggerable via network packets.\nAC:H - The attacker cannot control the if_id value returned by the MC firmware in the IRQ status register. Triggering an out-of-bounds if_id requires a firmware bug or hardware anomaly, which are conditions beyond the attacker's control.\nPR:L - While the IRQ fires from hardware events, a local user on a system with DPAA2 hardware could potentially trigger link state change events. No special privileges beyond basic local access are required to cause network interface events.\nUI:N - No user interaction is required. The IRQ handler fires automatically in response to hardware events without any user action.\nS:U - The vulnerability affects the kernel in its own security context. There is no crossing of security boundaries such as VM escape or IOMMU bypass.\nC:H - The OOB read on the heap-allocated ports pointer array (up to 64K entries beyond bounds) reads arbitrary kernel heap memory. The dereferenced pointer then accesses further arbitrary memory, potentially disclosing kernel data.\nI:H - The OOB-read pointer is dereferenced and used to call functions that modify port state (link state update, MAC address set, MAC connect/disconnect). If the OOB-read pointer happens to point to attacker-influenced memory, this could enable arbitrary writes.\nA:H - Dereferencing a garbage pointer read from OOB heap memory will almost certainly cause a kernel crash (oops or panic), resulting in complete denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:20:30.334Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.200"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.70"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-23180","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:06:42.474268Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","type":"CWE","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T18:25:34.438Z"}}]}}}