
CVE-2026-99999 Analisi didattica — simulazione della catena di attacco della vulnerabilità csum_start del kernel Linux (CVSS 9.3). Vedi anche: CVE-2026-99999-exploit (PoC funzionante).
⚠️ Questo è il repository didattico/di analisi. Dimostra localmente la catena di attacco CVE-2026-99999 (nessuna rete, nessun root, nessun exploit reale).
🔴 PoC + harness lato host: → CVE-2026-99999-exploit (il trigger end-to-end guest→host non è verificato).
Bug di validazione di csum_start nell'IPv4 del kernel Linux — corruzione dell'header IPv4 nella frammentazione in uscita
Verifica sperimentale del 2026-11-06 (v100,
7.0.0-38-generic): la vulnerabilità è reale, il disallineamento dei frammenti è riproducibile; la divulgazione di informazioni e l'escalation di privilegi non sono state confermate. Vedi~/cve-2026-99999-verify/report.md.
CVSS 9.3 CRITICAL | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Scoperta da Paulos | CNA: kernel.org | Pubblicata: 2026-10-15
Questo è un progetto didattico/di analisi. Dimostra localmente la catena di attacco CVE-2026-99999 (nessuna rete, nessun root, nessun exploit reale). Il PoC lato host e l'harness risiedono nel repository interno dell'exploit; quell'harness riproduce la corruzione dell'header IPv4, ma un trigger guest→host non è stato verificato end-to-end.
⚠️ Solo per ricerca di sicurezza autorizzata in ambienti di laboratorio isolati.
Un frame iniettato tramite TUN/TAP (o virtio-net) trasporta un virtio_net_hdr
il cui csum_start è un offset dall'inizio del frame. Il controllo
di ingresso del kernel (__virtio_net_hdr_to_skb()) richiede solo
skb_transport_offset(skb) >= 20, quindi il valore viene accettato anche quando
non punta all'header di trasporto. Dopo la decapsulazione VLAN il puntatore
skb->data avanza ma il csum_start memorizzato no, quindi l'offset viene
reinterpretato rispetto a una base diversa. Nel percorso di output IPv4,
skb_checksum_help() somma da csum_start fino alla fine dei dati e
riscrive il risultato a 16 bit in csum_start + csum_offset — con un
frame a due VLAN (csum_start = 22) quella scrittura finisce sul byte 0 dell'IPv4.
Il primo byte del checksum diventa il nuovo version/IHL. Quando è
0x4F, l'IHL diventa 15 (60 byte) e ip_do_fragment() copia un header
di 60 byte. Sulla geometria misurata (skb_headlen = 28) ciò legge 32 byte oltre
la regione lineare. Nelle nostre esecuzioni quei 32 byte erano zero, quindi nessuna memoria
dell'host è stata divulgata — la corruzione della lunghezza dell'header e il conseguente
disallineamento del payload sono ciò che siamo effettivamente riusciti a riprodurre.
Impatto (verificato): lunghezza dell'header IPv4 scelta dall'attaccante nei frammenti inoltrati, con uno spostamento del payload di 40 byte e un checksum dell'header IP dall'aspetto valido. Non verificato: divulgazione di memoria guest-to-host / escape.
struct virtio_net_hdr { // 10 bytes
uint8_t flags; // VIRTIO_NET_HDR_F_NEEDS_CSUM = 0x01
uint8_t gso_type; // VIRTIO_NET_HDR_GSO_NONE = 0x00
uint16_t hdr_len; // network layer header length
uint16_t gso_size; // GSO segment size
uint16_t csum_start; // offset to transport header start
uint16_t csum_offset; // offset to checksum field within transport header
};
csum_start è relativo al frame così come consegnato al kernel. La guardia in ingresso
richiede skb_transport_offset >= 20, quindi qualsiasi valore inferiore a 20 non raggiunge mai il
codice di checksum.
| Impostazione | csum_start | csum_offset | Destinazione della scrittura | Risultato |
|---|---|---|---|---|
| Normale (offload csum UDP) | 34 (Eth 14 + IP 20) | 6 (cksum UDP) | byte 40 (checksum UDP) | ✅ Sicuro |
| Ethernet singolo, inizio IPv4 reale | 14 | 0 | — | ❌ -EINVAL in ingresso (14 < 20), non raggiunge mai il percorso del kernel |
| Ethernet singolo, sopra la guardia | 20 | 0 | byte 6 IP (Flags/FragOffset) | 🟡 accettato; misurato come frag_off corrotto (40, 5496, …) |
| Due tag VLAN | 22 | 0 | byte 0 IP (IHL) | 🔴 accettato; misurato IHL 5→15 su ogni frammento |
| Due tag VLAN | 22 | 6 | byte 6 IP (Flags) | 🟡 solo ipotesi, non verificato |
skb_checksum_help(skb, csum_start=22 on a two-VLAN frame):
1. offset = csum_start - skb_headroom(skb); after both VLAN tags are stripped
that is 22 - 22 = 0, i.e. the start of the IPv4 header
2. compute the one's complement sum from that offset to the end of the data
3. write the 16-bit result to offset + csum_offset (IPv4 bytes 0–1 for offset 0)
4. if the written first byte is 0x4F → version 4, IHL 15 (60 bytes)
5. ip_do_fragment() then copies a 60-byte header although skb_headlen is 28
→ 32 bytes read past the linear data (all zero in the measured runs)
┌──────────────────────────────────────────────────────────────────────────┐
│ ATTACK CHAIN OVERVIEW │
└──────────────────────────────────────────────────────────────────────────┘
Guest VM (attacker) / TAP injection
│
│ ① build_crafted_packet()
│ [virtio_net_hdr(csum_start=22, csum_offset=0)]
│ [Eth header]
│ [VLAN 1] [VLAN 2] ← IPv4 starts at frame offset 22
│ [IPv4 header: 0x45 = IHL 5]
│ [UDP header]
│ [payload]
│
▼
virtio-net / TAP ingress
│
│ ② __virtio_net_hdr_to_skb()
│ guard: skb_transport_offset < 20 → -EINVAL
│ 22 passes (14 would be rejected)
│ csum_start=22 stored in skb->csum_start
│
▼
Host Linux Kernel — IPv4 egress path (not GSO)
│
│ ③ VLAN tags are stripped: skb->data advances 22 bytes
│ headroom becomes 22 → write offset = 22 - 22 = 0
│ skb_checksum_help() sums from offset 0 to the end of the data
│ Writes the 16-bit result to IP bytes 0–1
│ If the first byte is 0x4F → IHL 5 → 15 (measured)
│
│ ④ ip_do_fragment() called with corrupted header
│ Copies hlen = 60 bytes, but skb_headlen = 28
│ 32 bytes read past the linear data — all zero in our runs
│ Payload starts at original payload[32] (40-byte shift)
│
▼
Outbound fragments
│
│ ⑤ Each fragment carries a 60-byte header whose IHL is attacker-chosen
│ and whose IP checksum is recomputed by the fragmenter (looks valid)
│
▼
Evidence on host egress interface
│
│ ⑥ tcpdump / bpftrace
│ 30/30 fragments with ver_ihl = 0x4F
│ CSUM_HELP target_b0 = 0x45 (the byte about to be overwritten)