🔍 CVE-2026-99081

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-23 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 bnxt_en 드라이버에서 최소 패킷 크기(52바이트)보다 작은 패킷에 패딩을 적용할 때, DMA 매핑 길이가 패딩 전 길이로 유지되어 하드웨어가 매핑되지 않은 메모리를 읽는 문제가 발생합니다. 이로 인해 IOMMU DMA 읽기 오류와 전송 큐 타임아웃이 일어날 수 있으며, skb_put_padto()를 사용해 패딩 후 길이로 DMA 매핑하도록 수정되었습니다.

💡 쉬운 설명

작은 네트워크 패킷을 보낼 때 네트워크 카드가 실제 데이터보다 더 많은 메모리를 읽으려다 잘못된 주소에 접근해 오류가 발생하는 결함입니다. 이로 인해 네트워크 전송이 멈추거나 시스템 오류가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bnxt_en: fix DMA mapping length for padded small packets Stefan Fleischmann reported Intel IOMMU DMA Read faults on BCM57412 NetXtreme-E NICs when transmitting packets on VLAN/macvlan interfaces: DMAR: [DMA Read NO_PASID] Request device [18:00.0] fault addr 0xfc499000 [fault reason 0x06] PTE Read access is not set bnxt_en 0000:18:00.0 eno1np0: Abandoning msg {0xb4 0x41a} len: 0 due to firmware status: 0x2000001 ... NETDEV WATCHDOG: eno1np0 (bnxt_en): transmit queue 0 timed out The fault address (0xfc499000) is on an exact 4KB page boundary, pointing to a DMA read buffer overrun. In bnxt_start_xmit(), packets smaller than BNXT_MIN_PKT_SIZE (52 bytes), such as 42-byte untagged ARP frames, are padded: if (length < BNXT_MIN_PKT_SIZE) { pad = BNXT_MIN_PKT_SIZE - length; if (skb_pad(skb, pad)) goto tx_kick_pending; length = BNXT_MIN_PKT_SIZE; } mapping = dma_map_single(&pdev->dev, skb->data, len, DMA_TO_DEVICE); ... dma_unmap_len_set(tx_buf, len, len); However, 'len' was initialized earlier to skb_headlen(skb) (e.g. 42 bytes) and is left unadjusted after padding. Consequently, dma_map_single() and dma_unmap_len_set() map and track only 42 bytes. Later, the hardware TX buffer descriptor is programmed with the padded length: txbd->tx_bd_len_flags_type = cpu_to_le32(((len + pad) << TX_BD_LEN_SHIFT) | flags | TX_BD_FLAGS_PACKET_END); The NIC DMA engine is thus instructed to read 52 bytes from a region where only 42 bytes were DMA-mapped. If skb->data ends near the boundary of a 4KB page (within 'pad' bytes of the next page), the hardware DMA read overruns into the unmapped adjacent page, triggering an IOMMU fault. This issue was exposed after commit 447cbe95ebb9 ("vlan: fix skb_under_panic and races when toggling HW VLAN offload") because reserving extra VLAN headroom rounded LL_RESERVED_SPACE from 48 up to 64 bytes, shifting skb->data offsets and potentially causing small frames to land right against page boundaries. Fix this by using skb_put_padto(skb, BNXT_MIN_PKT_SIZE) in bnxt_start_xmit(), before skb_shinfo(skb)->nr_frags is sampled, because padding might linearize the skb. This ensures skb->len and skb_headlen(skb) reflect the padded size so that dma_map_single() maps the full buffer and the descriptor length is consistent. This also removes the temporary 'pad' variable and masking logic. The padding is done after the SW USO branch, otherwise bnxt_sw_udp_gso_xmit() would account the padding as UDP payload and send it in extra segments. Note that SW USO segments are still not padded: with IPv4, a segment carrying less than 10 bytes of UDP payload (small gso_size, or a short last segment) is sent as a frame shorter than BNXT_MIN_PKT_SIZE. This is a separate issue, left for a followup patch.

📍 영향받는 시스템

Broadcom BCM57412 등 bnxt_en 드라이버를 사용하는 NetXtreme-E NIC이 장착된 Linux 커널 (수정 커밋 이전 버전)

⚔️ 공격 벡터

로컬 네트워크에서 작은 크기의 VLAN/macvlan 패킷을 전송하는 상황에서 발생하는 안정성 결함으로, 직접적인 원격 공격보다는 서비스 중단 유발에 가깝습니다.

🛡️ 대응 방법

패치된 Linux 커널(bnxt_en 드라이버에 skb_put_padto 적용 버전)으로 업데이트합니다.

🔧 검증 코드

커널 버전이 패치가 배포된 최신 배포판 커널과 같거나 높으면 수정이 포함된 것이며, 낮다면 배포판 보안 업데이트 적용 여부를 추가 확인해야 합니다.

Shell / Script
uname -r && modinfo bnxt_en 2>/dev/null | grep -E '^(version|srcversion)'

💻 영향받는 소프트웨어

Linux Kernel