CVE-2022-50817 (GCVE-0-2022-50817)
Vulnerability from cvelistv5
Published
2025-12-30 12:08
Modified
2025-12-30 12:08
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: net: hsr: avoid possible NULL deref in skb_clone() syzbot got a crash [1] in skb_clone(), caused by a bug in hsr_get_untagged_frame(). When/if create_stripped_skb_hsr() returns NULL, we must not attempt to call skb_clone(). While we are at it, replace a WARN_ONCE() by netdev_warn_once(). [1] general protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000078-0x000000000000007f] CPU: 1 PID: 754 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:skb_clone+0x108/0x3c0 net/core/skbuff.c:1641 Code: 93 02 00 00 49 83 7c 24 28 00 0f 85 e9 00 00 00 e8 5d 4a 29 fa 4c 8d 75 7e 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <0f> b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 9e 01 00 00 RSP: 0018:ffffc90003ccf4e0 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffffc90003ccf5f8 RCX: ffffc9000c24b000 RDX: 000000000000000f RSI: ffffffff8751cb13 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00000000000000f0 R09: 0000000000000140 R10: fffffbfff181d972 R11: 0000000000000000 R12: ffff888161fc3640 R13: 0000000000000a20 R14: 000000000000007e R15: ffffffff8dc5f620 FS: 00007feb621e4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feb621e3ff8 CR3: 00000001643a9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> hsr_get_untagged_frame+0x4e/0x610 net/hsr/hsr_forward.c:164 hsr_forward_do net/hsr/hsr_forward.c:461 [inline] hsr_forward_skb+0xcca/0x1d50 net/hsr/hsr_forward.c:623 hsr_handle_frame+0x588/0x7c0 net/hsr/hsr_slave.c:69 __netif_receive_skb_core+0x9fe/0x38f0 net/core/dev.c:5379 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5483 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5599 netif_receive_skb_internal net/core/dev.c:5685 [inline] netif_receive_skb+0x12f/0x8d0 net/core/dev.c:5744 tun_rx_batched+0x4ab/0x7a0 drivers/net/tun.c:1544 tun_get_user+0x2686/0x3a00 drivers/net/tun.c:1995 tun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2025 call_write_iter include/linux/fs.h:2187 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:584 ksys_write+0x127/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd
Impacted products
Vendor Product Version
Linux Linux Version: f266a683a4804dc499efc6c2206ef68efed029d0
Version: f266a683a4804dc499efc6c2206ef68efed029d0
Version: f266a683a4804dc499efc6c2206ef68efed029d0
Version: f266a683a4804dc499efc6c2206ef68efed029d0
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/hsr/hsr_forward.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ff7ba766758313129794f150bbc4d351b5e17a53",
              "status": "affected",
              "version": "f266a683a4804dc499efc6c2206ef68efed029d0",
              "versionType": "git"
            },
            {
              "lessThan": "35ece858660eae13ee0242496a1956c39d29418e",
              "status": "affected",
              "version": "f266a683a4804dc499efc6c2206ef68efed029d0",
              "versionType": "git"
            },
            {
              "lessThan": "c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4",
              "status": "affected",
              "version": "f266a683a4804dc499efc6c2206ef68efed029d0",
              "versionType": "git"
            },
            {
              "lessThan": "d8b57135fd9ffe9a5b445350a686442a531c5339",
              "status": "affected",
              "version": "f266a683a4804dc499efc6c2206ef68efed029d0",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/hsr/hsr_forward.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.17"
            },
            {
              "lessThan": "3.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.152",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.152",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.76",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.6",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "3.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hsr: avoid possible NULL deref in skb_clone()\n\nsyzbot got a crash [1] in skb_clone(), caused by a bug\nin hsr_get_untagged_frame().\n\nWhen/if create_stripped_skb_hsr() returns NULL, we must\nnot attempt to call skb_clone().\n\nWhile we are at it, replace a WARN_ONCE() by netdev_warn_once().\n\n[1]\ngeneral protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 [#1] PREEMPT SMP KASAN\nKASAN: null-ptr-deref in range [0x0000000000000078-0x000000000000007f]\nCPU: 1 PID: 754 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 #0\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022\nRIP: 0010:skb_clone+0x108/0x3c0 net/core/skbuff.c:1641\nCode: 93 02 00 00 49 83 7c 24 28 00 0f 85 e9 00 00 00 e8 5d 4a 29 fa 4c 8d 75 7e 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 \u003c0f\u003e b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 9e 01 00 00\nRSP: 0018:ffffc90003ccf4e0 EFLAGS: 00010207\n\nRAX: dffffc0000000000 RBX: ffffc90003ccf5f8 RCX: ffffc9000c24b000\nRDX: 000000000000000f RSI: ffffffff8751cb13 RDI: 0000000000000000\nRBP: 0000000000000000 R08: 00000000000000f0 R09: 0000000000000140\nR10: fffffbfff181d972 R11: 0000000000000000 R12: ffff888161fc3640\nR13: 0000000000000a20 R14: 000000000000007e R15: ffffffff8dc5f620\nFS: 00007feb621e4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000\nCS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033\nCR2: 00007feb621e3ff8 CR3: 00000001643a9000 CR4: 00000000003506e0\nDR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\nDR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400\nCall Trace:\n\u003cTASK\u003e\nhsr_get_untagged_frame+0x4e/0x610 net/hsr/hsr_forward.c:164\nhsr_forward_do net/hsr/hsr_forward.c:461 [inline]\nhsr_forward_skb+0xcca/0x1d50 net/hsr/hsr_forward.c:623\nhsr_handle_frame+0x588/0x7c0 net/hsr/hsr_slave.c:69\n__netif_receive_skb_core+0x9fe/0x38f0 net/core/dev.c:5379\n__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5483\n__netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5599\nnetif_receive_skb_internal net/core/dev.c:5685 [inline]\nnetif_receive_skb+0x12f/0x8d0 net/core/dev.c:5744\ntun_rx_batched+0x4ab/0x7a0 drivers/net/tun.c:1544\ntun_get_user+0x2686/0x3a00 drivers/net/tun.c:1995\ntun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2025\ncall_write_iter include/linux/fs.h:2187 [inline]\nnew_sync_write fs/read_write.c:491 [inline]\nvfs_write+0x9e9/0xdd0 fs/read_write.c:584\nksys_write+0x127/0x250 fs/read_write.c:637\ndo_syscall_x64 arch/x86/entry/common.c:50 [inline]\ndo_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80\nentry_SYSCALL_64_after_hwframe+0x63/0xcd"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-30T12:08:32.866Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ff7ba766758313129794f150bbc4d351b5e17a53"
        },
        {
          "url": "https://git.kernel.org/stable/c/35ece858660eae13ee0242496a1956c39d29418e"
        },
        {
          "url": "https://git.kernel.org/stable/c/c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4"
        },
        {
          "url": "https://git.kernel.org/stable/c/d8b57135fd9ffe9a5b445350a686442a531c5339"
        }
      ],
      "title": "net: hsr: avoid possible NULL deref in skb_clone()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50817",
    "datePublished": "2025-12-30T12:08:32.866Z",
    "dateReserved": "2025-12-30T12:06:07.130Z",
    "dateUpdated": "2025-12-30T12:08:32.866Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50817\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:15:56.087\",\"lastModified\":\"2025-12-31T20:43:05.160\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: hsr: avoid possible NULL deref in skb_clone()\\n\\nsyzbot got a crash [1] in skb_clone(), caused by a bug\\nin hsr_get_untagged_frame().\\n\\nWhen/if create_stripped_skb_hsr() returns NULL, we must\\nnot attempt to call skb_clone().\\n\\nWhile we are at it, replace a WARN_ONCE() by netdev_warn_once().\\n\\n[1]\\ngeneral protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 [#1] PREEMPT SMP KASAN\\nKASAN: null-ptr-deref in range [0x0000000000000078-0x000000000000007f]\\nCPU: 1 PID: 754 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 #0\\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022\\nRIP: 0010:skb_clone+0x108/0x3c0 net/core/skbuff.c:1641\\nCode: 93 02 00 00 49 83 7c 24 28 00 0f 85 e9 00 00 00 e8 5d 4a 29 fa 4c 8d 75 7e 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 \u003c0f\u003e b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 9e 01 00 00\\nRSP: 0018:ffffc90003ccf4e0 EFLAGS: 00010207\\n\\nRAX: dffffc0000000000 RBX: ffffc90003ccf5f8 RCX: ffffc9000c24b000\\nRDX: 000000000000000f RSI: ffffffff8751cb13 RDI: 0000000000000000\\nRBP: 0000000000000000 R08: 00000000000000f0 R09: 0000000000000140\\nR10: fffffbfff181d972 R11: 0000000000000000 R12: ffff888161fc3640\\nR13: 0000000000000a20 R14: 000000000000007e R15: ffffffff8dc5f620\\nFS: 00007feb621e4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000\\nCS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033\\nCR2: 00007feb621e3ff8 CR3: 00000001643a9000 CR4: 00000000003506e0\\nDR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\\nDR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400\\nCall Trace:\\n\u003cTASK\u003e\\nhsr_get_untagged_frame+0x4e/0x610 net/hsr/hsr_forward.c:164\\nhsr_forward_do net/hsr/hsr_forward.c:461 [inline]\\nhsr_forward_skb+0xcca/0x1d50 net/hsr/hsr_forward.c:623\\nhsr_handle_frame+0x588/0x7c0 net/hsr/hsr_slave.c:69\\n__netif_receive_skb_core+0x9fe/0x38f0 net/core/dev.c:5379\\n__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5483\\n__netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5599\\nnetif_receive_skb_internal net/core/dev.c:5685 [inline]\\nnetif_receive_skb+0x12f/0x8d0 net/core/dev.c:5744\\ntun_rx_batched+0x4ab/0x7a0 drivers/net/tun.c:1544\\ntun_get_user+0x2686/0x3a00 drivers/net/tun.c:1995\\ntun_chr_write_iter+0xdb/0x200 drivers/net/tun.c:2025\\ncall_write_iter include/linux/fs.h:2187 [inline]\\nnew_sync_write fs/read_write.c:491 [inline]\\nvfs_write+0x9e9/0xdd0 fs/read_write.c:584\\nksys_write+0x127/0x250 fs/read_write.c:637\\ndo_syscall_x64 arch/x86/entry/common.c:50 [inline]\\ndo_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80\\nentry_SYSCALL_64_after_hwframe+0x63/0xcd\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/35ece858660eae13ee0242496a1956c39d29418e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d8b57135fd9ffe9a5b445350a686442a531c5339\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ff7ba766758313129794f150bbc4d351b5e17a53\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…