{
  "id": "CVE-2025-39703",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39703",
  "published_at": "2025-09-05T17:21:09.768Z",
  "title": "net, hsr: reject HSR frame if skb can't hold tag",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet, hsr: reject HSR frame if skb can't hold tag\n\nReceiving HSR frame with insufficient space to hold HSR tag in the skb\ncan result in a crash (kernel BUG):\n\n[   45.390915] skbuff: skb_under_panic: text:ffffffff86f32cac len:26 put:14 head:ffff888042418000 data:ffff888042417ff4 tail:0xe end:0x180 dev:bridge_slave_1\n[   45.392559] ------------[ cut here ]------------\n[   45.392912] kernel BUG at net/core/skbuff.c:211!\n[   45.393276] Oops: invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN NOPTI\n[   45.393809] CPU: 1 UID: 0 PID: 2496 Comm: reproducer Not tainted 6.15.0 #12 PREEMPT(undef)\n[   45.394433] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014\n[   45.395273] RIP: 0010:skb_panic+0x15b/0x1d0\n\n\u003csnip registers, remove unreliable trace\u003e\n\n[   45.402911] Call Trace:\n[   45.403105]  \u003cIRQ\u003e\n[   45.404470]  skb_push+0xcd/0xf0\n[   45.404726]  br_dev_queue_push_xmit+0x7c/0x6c0\n[   45.406513]  br_forward_finish+0x128/0x260\n[   45.408483]  __br_forward+0x42d/0x590\n[   45.409464]  maybe_deliver+0x2eb/0x420\n[   45.409763]  br_flood+0x174/0x4a0\n[   45.410030]  br_handle_frame_finish+0xc7c/0x1bc0\n[   45.411618]  br_handle_frame+0xac3/0x1230\n[   45.413674]  __netif_receive_skb_core.constprop.0+0x808/0x3df0\n[   45.422966]  __netif_receive_skb_one_core+0xb4/0x1f0\n[   45.424478]  __netif_receive_skb+0x22/0x170\n[   45.424806]  process_backlog+0x242/0x6d0\n[   45.425116]  __napi_poll+0xbb/0x630\n[   45.425394]  net_rx_action+0x4d1/0xcc0\n[   45.427613]  handle_softirqs+0x1a4/0x580\n[   45.427926]  do_softirq+0x74/0x90\n[   45.428196]  \u003c/IRQ\u003e\n\nThis issue was found by syzkaller.\n\nThe panic happens in br_dev_queue_push_xmit() once it receives a\ncorrupted skb with ETH header already pushed in linear data. When it\nattempts the skb_push() call, there's not enough headroom and\nskb_push() panics.\n\nThe corrupted skb is put on the queue by HSR layer, which makes a\nsequence of unintended transformations when it receives a specific\ncorrupted HSR frame (with incomplete TAG).\n\nFix it by dropping and consuming frames that are not long enough to\ncontain both ethernet and hsr headers.\n\nAlternative fix would be to check for enough headroom before skb_push()\nin br_dev_queue_push_xmit().\n\nIn the reproducer, this is injected via AF_PACKET, but I don't easily\nsee why it couldn't be sent over the wire from adjacent network.\n\nFurther Details:\n\nIn the reproducer, the following network interface chain is set up:\n\n┌────────────────┐   ┌────────────────┐\n│ veth0_to_hsr   ├───┤  hsr_slave0    ┼───┐\n└────────────────┘   └────────────────┘   │\n                                          │ ┌──────┐\n                                          ├─┤ hsr0 ├───┐\n                                          │ └──────┘   │\n┌────────────────┐   ┌────────────────┐   │            │┌────────┐\n│ veth1_to_hsr   ┼───┤  hsr_slave1    ├───┘            └┤        │\n└────────────────┘   └────────────────┘                ┌┼ bridge │\n                                                       ││        │\n                                                       │└────────┘\n                                                       │\n                                        ┌───────┐      │\n                                        │  ...  ├──────┘\n                                        └───────┘\n\nTo trigger the events leading up to crash, reproducer sends a corrupted\nHSR fr\n---truncated---",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.13:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.13:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f6442ee08fe66c8e45c4f246531a2aaf4f17a7a7, \u003c 8d9bc4a375a1ba05f7dfa0407de8e510ab9bd14d",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c 3ae272ab523dd6bdc26e879027ed79feac9dd1b3",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c b640188b8a6690e685939053c7efdbc7818b5f4e",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c b117c41b00902c1a7e24347c405cb82504aeae0b",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c acd69b597bd3f76d3b3d322b84082226c00eeaa4",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c 61009439e4bd8d74e705ee15940760321be91d8a",
          "\u003e= 48b491a5cc74333c4a6a82fe21cea42c055a3b0b, \u003c 7af76e9d18a9fd6f8611b3313c86c190f9b6a5a7",
          "4ffd1d4a6b306ff69cbe412d2c54d2dd349ff436",
          "\u003e= 5.10.42, \u003c 5.10.241",
          "\u003e= 5.12.9, \u003c 5.13"
        ],
        "fixed_in": [
          "8d9bc4a375a1ba05f7dfa0407de8e510ab9bd14d",
          "3ae272ab523dd6bdc26e879027ed79feac9dd1b3",
          "b640188b8a6690e685939053c7efdbc7818b5f4e",
          "b117c41b00902c1a7e24347c405cb82504aeae0b",
          "acd69b597bd3f76d3b3d322b84082226c00eeaa4",
          "61009439e4bd8d74e705ee15940760321be91d8a",
          "7af76e9d18a9fd6f8611b3313c86c190f9b6a5a7",
          "5.10.241",
          "5.13"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.13"
        ],
        "fixed_in": [
          "0",
          "5.10.241",
          "5.15.190",
          "6.1.149",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 8d9bc4a375a1ba05f7dfa0407de8e510ab9bd14d or 3ae272ab523dd6bdc26e879027ed79feac9dd1b3 or b640188b8a6690e685939053c7efdbc7818b5f4e or b117c41b00902c1a7e24347c405cb82504aeae0b or acd69b597bd3f76d3b3d322b84082226c00eeaa4 or 61009439e4bd8d74e705ee15940760321be91d8a or 7af76e9d18a9fd6f8611b3313c86c190f9b6a5a7 or 5.10.241 or 5.13 or later.",
      "Upgrade Linux to 0 or 5.10.241 or 5.15.190 or 6.1.149 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
