Skip to content
Heist/ feed
Back to feed
UnratedFix available

wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit Syzbot points out that skb_trim() has a sanity check on the existing length of the skb, which can be uninitialised in some error paths. The intent here is clearly just to reset the length to zero before resubmitting, so switch to calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length() already contains a call to skb_reset_tail_pointer(), so remove the redundant call. The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.323, 5.10.227, 5.15.168, 5.4.285, 6.1.113, 6.10.14, 6.11.3, 6.6.55
CVEs
CVE-2024-49938
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:15 UTC · Revision 1

Source evidence

wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit

core-osv · Original source

Published 21 Oct 2024, 18:01 UTC

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit Syzbot points out that skb_trim() has a sanity check on the existing length of the skb, which can be uninitialised in some error paths. The intent here is clearly just to reset the length to zero before resubmitting, so switch to calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length() already contains a call to skb_reset_tail_pointer(), so remove the redundant call. The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.

osv:CVE-2024-49938

Kernel

Fixed versions: 4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3

Complete source record
{
  "id": "f01536a678c7a03fccaae22bdc1ace28c6ee69cafed521ebccf30368714c4877",
  "url": "https://osv.dev/vulnerability/CVE-2024-49938",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit Syzbot points out that skb_trim() has a sanity check on the existing length of the skb, which can be uninitialised in some error paths. The intent here is clearly just to reset the length to zero before resubmitting, so switch to calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length() already contains a call to skb_reset_tail_pointer(), so remove the redundant call. The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.",
    "evidence": "osv:CVE-2024-49938",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.323",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.285",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.227",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.55",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-49938",
      "aliases": [
        "CVE-2024-49938"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fb9987d0f748c983bb795a86f47522313f701a08"
                },
                {
                  "fixed": "e6b9bf32e0695e4f374674002de0527d2a6768eb"
                },
                {
                  "fixed": "d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77"
                },
                {
                  "fixed": "b02eb7c86ff2ef1411c3095ec8a52b13f68db04f"
                },
                {
                  "fixed": "012ae530afa0785102360de452745d33c99a321b"
                },
                {
                  "fixed": "6a875220670475d9247e576c15dc29823100a4e4"
                },
                {
                  "fixed": "e37e348835032d6940ec89308cc8996ded691d2d"
                },
                {
                  "fixed": "2c230210ec0ae6ed08306ac70dc21c24b817bb95"
                },
                {
                  "fixed": "a9f4e28e8adaf0715bd4e01462af0a52ee46b01f"
                },
                {
                  "fixed": "94745807f3ebd379f23865e6dab196f220664179"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49938.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.35"
                },
                {
                  "fixed": "4.19.323"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.285"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.55"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49938.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.553931626Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-355557.html",
        "https://git.kernel.org/stable/c/012ae530afa0785102360de452745d33c99a321b",
        "https://git.kernel.org/stable/c/2c230210ec0ae6ed08306ac70dc21c24b817bb95",
        "https://git.kernel.org/stable/c/6a875220670475d9247e576c15dc29823100a4e4",
        "https://git.kernel.org/stable/c/94745807f3ebd379f23865e6dab196f220664179",
        "https://git.kernel.org/stable/c/a9f4e28e8adaf0715bd4e01462af0a52ee46b01f",
        "https://git.kernel.org/stable/c/b02eb7c86ff2ef1411c3095ec8a52b13f68db04f",
        "https://git.kernel.org/stable/c/d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77",
        "https://git.kernel.org/stable/c/e37e348835032d6940ec89308cc8996ded691d2d",
        "https://git.kernel.org/stable/c/e6b9bf32e0695e4f374674002de0527d2a6768eb",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49938.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49938",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49938.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49938",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490789,
  "published_at": "2024-10-21T18:01:58.359+00:00"
}