{"id":"CVE-2025-38545","state":"PUBLISHED","title":"net: ethernet: ti: am65-cpsw-nuss: Fix skb size by accounting for skb_shared_info","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: ti: am65-cpsw-nuss: Fix skb size by accounting for skb_shared_info\n\nWhile transitioning from netdev_alloc_ip_align() to build_skb(), memory\nfor the \"skb_shared_info\" member of an \"skb\" was not allocated. Fix this\nby allocating \"PAGE_SIZE\" as the skb length, accounting for the packet\nlength, headroom and tailroom, thereby including the required memory space\nfor skb_shared_info.","publishedAt":"2025-08-16T11:22:19.459Z","updatedAt":"2026-08-05T12:02:47.780Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"fc2fffa2facac15ce711e95f98f954426e025bc5","versionType":"git"},{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"7d6ca0c8c0caf9a13cae2de763bb1f2a9ea7eabb","versionType":"git"},{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"02c4d6c26f1f662da8885b299c224ca6628ad232","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ti/am65-cpsw-nuss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.39","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.7","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","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/ti/am65-cpsw-nuss.c"]}],"references":["https://git.kernel.org/stable/c/fc2fffa2facac15ce711e95f98f954426e025bc5","https://git.kernel.org/stable/c/7d6ca0c8c0caf9a13cae2de763bb1f2a9ea7eabb","https://git.kernel.org/stable/c/02c4d6c26f1f662da8885b299c224ca6628ad232"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38545.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38545","state":"PUBLISHED","datePublished":"2025-08-16T11:22:19.459Z","dateUpdated":"2026-08-05T12:02:47.780Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.024Z"},"containers":{"cna":{"title":"net: ethernet: ti: am65-cpsw-nuss: Fix skb size by accounting for skb_shared_info","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: ti: am65-cpsw-nuss: Fix skb size by accounting for skb_shared_info\n\nWhile transitioning from netdev_alloc_ip_align() to build_skb(), memory\nfor the \"skb_shared_info\" member of an \"skb\" was not allocated. Fix this\nby allocating \"PAGE_SIZE\" as the skb length, accounting for the packet\nlength, headroom and tailroom, thereby including the required memory space\nfor skb_shared_info."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"fc2fffa2facac15ce711e95f98f954426e025bc5","versionType":"git"},{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"7d6ca0c8c0caf9a13cae2de763bb1f2a9ea7eabb","versionType":"git"},{"version":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","status":"affected","lessThan":"02c4d6c26f1f662da8885b299c224ca6628ad232","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ti/am65-cpsw-nuss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.39","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.7","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","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/ti/am65-cpsw-nuss.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fc2fffa2facac15ce711e95f98f954426e025bc5"},{"url":"https://git.kernel.org/stable/c/7d6ca0c8c0caf9a13cae2de763bb1f2a9ea7eabb"},{"url":"https://git.kernel.org/stable/c/02c4d6c26f1f662da8885b299c224ca6628ad232"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable code is the am65-cpsw RX NAPI path, entered solely by processing a received Ethernet frame, and the panic threshold (1704 bytes) is below the driver's supported max_mtu of 2002, so an ordinary routed IP datagram from a remote host triggers it on any port configured with an MTU above ~1690.\nAC:L - The attacker only needs to get a frame larger than 1704 bytes delivered to the interface; the hardware RX_MAXLEN is fixed at 2024 independent of the configured MTU, so even at the default MTU an oversized frame is accepted and DMA'd, and the resulting skb_put() overflow is deterministic with no race or memory-layout dependency.\nPR:N - The crash happens in am65_cpsw_nuss_rx_packets() before eth_type_trans() and any protocol or socket demultiplexing, so no credentials, sockets, or local access of any kind are required — a broadcast or unicast frame to the port's MAC suffices.\nUI:N - Packet reception and NAPI polling are entirely automatic; no action by any local or remote user is needed once the interface is up.\nS:U - The BUG() and resulting panic occur in the kernel of the receiving host, affecting only resources managed by that same security authority with no crossing of a VM, IOMMU, or sandbox boundary.\nC:N - skb->end is understated rather than overstated, so no out-of-bounds read occurs — skb_put()'s bounds check fires before any data past the allocation is touched, and packets at or below 1704 bytes end exactly at the skb_shared_info boundary with no overlap.\nI:N - There is no out-of-bounds write: skb_shared_info and the entire DMA buffer stay within the order-0 page, the page is never in the DMA ring while a live skb references it, and the oversize case aborts at the skb_put() check rather than corrupting adjacent memory.\nA:H - Any frame exceeding 1704 bytes drives skb_put() past skb->end into skb_over_panic() -> BUG() from softirq context, which on arm64 becomes \"Fatal exception in interrupt\" and panics the machine; it is remotely and repeatably triggerable."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:02:47.780Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.15.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}