{"id":"CVE-2025-21742","state":"PUBLISHED","title":"usbnet: ipheth: use static NDP16 location in URB","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusbnet: ipheth: use static NDP16 location in URB\n\nOriginal code allowed for the start of NDP16 to be anywhere within the\nURB based on the `wNdpIndex` value in NTH16. Only the start position of\nNDP16 was checked, so it was possible for even the fixed-length part\nof NDP16 to extend past the end of URB, leading to an out-of-bounds\nread.\n\nOn iOS devices, the NDP16 header always directly follows NTH16. Rely on\nand check for this specific format.\n\nThis, along with NCM-specific minimal URB length check that already\nexists, will ensure that the fixed-length part of NDP16 plus a set\namount of DPEs fit within the URB.\n\nNote that this commit alone does not fully address the OoB read.\nThe limit on the amount of DPEs needs to be enforced separately.","publishedAt":"2025-02-27T02:12:16.207Z","updatedAt":"2026-05-11T21:05:32.954Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"8fb062178e1ce180e2cfdc9abc83a1b9fea381ca","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"cf1ac7f7cf601ac31d1580559c002b5e37b733b7","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"2b619445dcb6dab97d8ed033fb57225aca1288c4","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"86586dcb75cb8fd062a518aca8ee667938b91efb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/ipheth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.78","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.14","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.3","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/ipheth.c"]}],"references":["https://git.kernel.org/stable/c/8fb062178e1ce180e2cfdc9abc83a1b9fea381ca","https://git.kernel.org/stable/c/cf1ac7f7cf601ac31d1580559c002b5e37b733b7","https://git.kernel.org/stable/c/2b619445dcb6dab97d8ed033fb57225aca1288c4","https://git.kernel.org/stable/c/86586dcb75cb8fd062a518aca8ee667938b91efb"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21742.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21742","state":"PUBLISHED","datePublished":"2025-02-27T02:12:16.207Z","dateUpdated":"2026-05-11T21:05:32.954Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.757Z"},"containers":{"cna":{"title":"usbnet: ipheth: use static NDP16 location in URB","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusbnet: ipheth: use static NDP16 location in URB\n\nOriginal code allowed for the start of NDP16 to be anywhere within the\nURB based on the `wNdpIndex` value in NTH16. Only the start position of\nNDP16 was checked, so it was possible for even the fixed-length part\nof NDP16 to extend past the end of URB, leading to an out-of-bounds\nread.\n\nOn iOS devices, the NDP16 header always directly follows NTH16. Rely on\nand check for this specific format.\n\nThis, along with NCM-specific minimal URB length check that already\nexists, will ensure that the fixed-length part of NDP16 plus a set\namount of DPEs fit within the URB.\n\nNote that this commit alone does not fully address the OoB read.\nThe limit on the amount of DPEs needs to be enforced separately."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"8fb062178e1ce180e2cfdc9abc83a1b9fea381ca","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"cf1ac7f7cf601ac31d1580559c002b5e37b733b7","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"2b619445dcb6dab97d8ed033fb57225aca1288c4","versionType":"git"},{"version":"a2d274c62e44b1995c170595db3865c6fe701226","status":"affected","lessThan":"86586dcb75cb8fd062a518aca8ee667938b91efb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/ipheth.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.5","versionType":"semver"},{"version":"6.6.78","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.14","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.3","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/usb/ipheth.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8fb062178e1ce180e2cfdc9abc83a1b9fea381ca"},{"url":"https://git.kernel.org/stable/c/cf1ac7f7cf601ac31d1580559c002b5e37b733b7"},{"url":"https://git.kernel.org/stable/c/2b619445dcb6dab97d8ed033fb57225aca1288c4"},{"url":"https://git.kernel.org/stable/c/86586dcb75cb8fd062a518aca8ee667938b91efb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:05:32.954Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.6.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.12.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.13.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"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:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-21742","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:31:07.424616Z"}}}],"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":"2025-10-01T19:36:41.519Z"}}]}}}