CVE-2023-53190 (GCVE-0-2023-53190)
Vulnerability from cvelistv5
Published
2025-09-15 14:06
Modified
2025-09-15 14:06
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: vxlan: Fix memory leaks in error path The memory allocated by vxlan_vnigroup_init() is not freed in the error path, leading to memory leaks [1]. Fix by calling vxlan_vnigroup_uninit() in the error path. The leaks can be reproduced by annotating gro_cells_init() with ALLOW_ERROR_INJECTION() and then running: # echo "100" > /sys/kernel/debug/fail_function/probability # echo "1" > /sys/kernel/debug/fail_function/times # echo "gro_cells_init" > /sys/kernel/debug/fail_function/inject # printf %#x -12 > /sys/kernel/debug/fail_function/gro_cells_init/retval # ip link add name vxlan0 type vxlan dstport 4789 external vnifilter RTNETLINK answers: Cannot allocate memory [1] unreferenced object 0xffff88810db84a00 (size 512): comm "ip", pid 330, jiffies 4295010045 (age 66.016s) hex dump (first 32 bytes): f8 d5 76 0e 81 88 ff ff 01 00 00 00 00 00 00 02 ..v............. 03 00 04 00 48 00 00 00 00 00 00 01 04 00 01 00 ....H........... backtrace: [<ffffffff81a3097a>] kmalloc_trace+0x2a/0x60 [<ffffffff82f049fc>] vxlan_vnigroup_init+0x4c/0x160 [<ffffffff82ecd69e>] vxlan_init+0x1ae/0x280 [<ffffffff836858ca>] register_netdevice+0x57a/0x16d0 [<ffffffff82ef67b7>] __vxlan_dev_create+0x7c7/0xa50 [<ffffffff82ef6ce6>] vxlan_newlink+0xd6/0x130 [<ffffffff836d02ab>] __rtnl_newlink+0x112b/0x18a0 [<ffffffff836d0a8c>] rtnl_newlink+0x6c/0xa0 [<ffffffff836c0ddf>] rtnetlink_rcv_msg+0x43f/0xd40 [<ffffffff83908ce0>] netlink_rcv_skb+0x170/0x440 [<ffffffff839066af>] netlink_unicast+0x53f/0x810 [<ffffffff839072d8>] netlink_sendmsg+0x958/0xe70 [<ffffffff835c319f>] ____sys_sendmsg+0x78f/0xa90 [<ffffffff835cd6da>] ___sys_sendmsg+0x13a/0x1e0 [<ffffffff835cd94c>] __sys_sendmsg+0x11c/0x1f0 [<ffffffff8424da78>] do_syscall_64+0x38/0x80 unreferenced object 0xffff88810e76d5f8 (size 192): comm "ip", pid 330, jiffies 4295010045 (age 66.016s) hex dump (first 32 bytes): 04 00 00 00 00 00 00 00 db e1 4f e7 00 00 00 00 ..........O..... 08 d6 76 0e 81 88 ff ff 08 d6 76 0e 81 88 ff ff ..v.......v..... backtrace: [<ffffffff81a3162e>] __kmalloc_node+0x4e/0x90 [<ffffffff81a0e166>] kvmalloc_node+0xa6/0x1f0 [<ffffffff8276e1a3>] bucket_table_alloc.isra.0+0x83/0x460 [<ffffffff8276f18b>] rhashtable_init+0x43b/0x7c0 [<ffffffff82f04a1c>] vxlan_vnigroup_init+0x6c/0x160 [<ffffffff82ecd69e>] vxlan_init+0x1ae/0x280 [<ffffffff836858ca>] register_netdevice+0x57a/0x16d0 [<ffffffff82ef67b7>] __vxlan_dev_create+0x7c7/0xa50 [<ffffffff82ef6ce6>] vxlan_newlink+0xd6/0x130 [<ffffffff836d02ab>] __rtnl_newlink+0x112b/0x18a0 [<ffffffff836d0a8c>] rtnl_newlink+0x6c/0xa0 [<ffffffff836c0ddf>] rtnetlink_rcv_msg+0x43f/0xd40 [<ffffffff83908ce0>] netlink_rcv_skb+0x170/0x440 [<ffffffff839066af>] netlink_unicast+0x53f/0x810 [<ffffffff839072d8>] netlink_sendmsg+0x958/0xe70 [<ffffffff835c319f>] ____sys_sendmsg+0x78f/0xa90
Impacted products
Vendor Product Version
Linux Linux Version: f9c4bb0b245cee35ef66f75bf409c9573d934cf9
Version: f9c4bb0b245cee35ef66f75bf409c9573d934cf9
Version: f9c4bb0b245cee35ef66f75bf409c9573d934cf9
Create a notification for this product.
   Linux Linux Version: 5.18
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/vxlan/vxlan_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "75c1ab900f7cf0485f0be1607c79c55f51faaa90",
              "status": "affected",
              "version": "f9c4bb0b245cee35ef66f75bf409c9573d934cf9",
              "versionType": "git"
            },
            {
              "lessThan": "5896f55810680391a32652ca2b91245a05c11e22",
              "status": "affected",
              "version": "f9c4bb0b245cee35ef66f75bf409c9573d934cf9",
              "versionType": "git"
            },
            {
              "lessThan": "06bf62944144a92d83dd14fd1378d2a288259561",
              "status": "affected",
              "version": "f9c4bb0b245cee35ef66f75bf409c9573d934cf9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/vxlan/vxlan_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.18"
            },
            {
              "lessThan": "5.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.19",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.19",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.5",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvxlan: Fix memory leaks in error path\n\nThe memory allocated by vxlan_vnigroup_init() is not freed in the error\npath, leading to memory leaks [1]. Fix by calling\nvxlan_vnigroup_uninit() in the error path.\n\nThe leaks can be reproduced by annotating gro_cells_init() with\nALLOW_ERROR_INJECTION() and then running:\n\n # echo \"100\" \u003e /sys/kernel/debug/fail_function/probability\n # echo \"1\" \u003e /sys/kernel/debug/fail_function/times\n # echo \"gro_cells_init\" \u003e /sys/kernel/debug/fail_function/inject\n # printf %#x -12 \u003e /sys/kernel/debug/fail_function/gro_cells_init/retval\n # ip link add name vxlan0 type vxlan dstport 4789 external vnifilter\n RTNETLINK answers: Cannot allocate memory\n\n[1]\nunreferenced object 0xffff88810db84a00 (size 512):\n  comm \"ip\", pid 330, jiffies 4295010045 (age 66.016s)\n  hex dump (first 32 bytes):\n    f8 d5 76 0e 81 88 ff ff 01 00 00 00 00 00 00 02  ..v.............\n    03 00 04 00 48 00 00 00 00 00 00 01 04 00 01 00  ....H...........\n  backtrace:\n    [\u003cffffffff81a3097a\u003e] kmalloc_trace+0x2a/0x60\n    [\u003cffffffff82f049fc\u003e] vxlan_vnigroup_init+0x4c/0x160\n    [\u003cffffffff82ecd69e\u003e] vxlan_init+0x1ae/0x280\n    [\u003cffffffff836858ca\u003e] register_netdevice+0x57a/0x16d0\n    [\u003cffffffff82ef67b7\u003e] __vxlan_dev_create+0x7c7/0xa50\n    [\u003cffffffff82ef6ce6\u003e] vxlan_newlink+0xd6/0x130\n    [\u003cffffffff836d02ab\u003e] __rtnl_newlink+0x112b/0x18a0\n    [\u003cffffffff836d0a8c\u003e] rtnl_newlink+0x6c/0xa0\n    [\u003cffffffff836c0ddf\u003e] rtnetlink_rcv_msg+0x43f/0xd40\n    [\u003cffffffff83908ce0\u003e] netlink_rcv_skb+0x170/0x440\n    [\u003cffffffff839066af\u003e] netlink_unicast+0x53f/0x810\n    [\u003cffffffff839072d8\u003e] netlink_sendmsg+0x958/0xe70\n    [\u003cffffffff835c319f\u003e] ____sys_sendmsg+0x78f/0xa90\n    [\u003cffffffff835cd6da\u003e] ___sys_sendmsg+0x13a/0x1e0\n    [\u003cffffffff835cd94c\u003e] __sys_sendmsg+0x11c/0x1f0\n    [\u003cffffffff8424da78\u003e] do_syscall_64+0x38/0x80\nunreferenced object 0xffff88810e76d5f8 (size 192):\n  comm \"ip\", pid 330, jiffies 4295010045 (age 66.016s)\n  hex dump (first 32 bytes):\n    04 00 00 00 00 00 00 00 db e1 4f e7 00 00 00 00  ..........O.....\n    08 d6 76 0e 81 88 ff ff 08 d6 76 0e 81 88 ff ff  ..v.......v.....\n  backtrace:\n    [\u003cffffffff81a3162e\u003e] __kmalloc_node+0x4e/0x90\n    [\u003cffffffff81a0e166\u003e] kvmalloc_node+0xa6/0x1f0\n    [\u003cffffffff8276e1a3\u003e] bucket_table_alloc.isra.0+0x83/0x460\n    [\u003cffffffff8276f18b\u003e] rhashtable_init+0x43b/0x7c0\n    [\u003cffffffff82f04a1c\u003e] vxlan_vnigroup_init+0x6c/0x160\n    [\u003cffffffff82ecd69e\u003e] vxlan_init+0x1ae/0x280\n    [\u003cffffffff836858ca\u003e] register_netdevice+0x57a/0x16d0\n    [\u003cffffffff82ef67b7\u003e] __vxlan_dev_create+0x7c7/0xa50\n    [\u003cffffffff82ef6ce6\u003e] vxlan_newlink+0xd6/0x130\n    [\u003cffffffff836d02ab\u003e] __rtnl_newlink+0x112b/0x18a0\n    [\u003cffffffff836d0a8c\u003e] rtnl_newlink+0x6c/0xa0\n    [\u003cffffffff836c0ddf\u003e] rtnetlink_rcv_msg+0x43f/0xd40\n    [\u003cffffffff83908ce0\u003e] netlink_rcv_skb+0x170/0x440\n    [\u003cffffffff839066af\u003e] netlink_unicast+0x53f/0x810\n    [\u003cffffffff839072d8\u003e] netlink_sendmsg+0x958/0xe70\n    [\u003cffffffff835c319f\u003e] ____sys_sendmsg+0x78f/0xa90"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:06:19.139Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/75c1ab900f7cf0485f0be1607c79c55f51faaa90"
        },
        {
          "url": "https://git.kernel.org/stable/c/5896f55810680391a32652ca2b91245a05c11e22"
        },
        {
          "url": "https://git.kernel.org/stable/c/06bf62944144a92d83dd14fd1378d2a288259561"
        }
      ],
      "title": "vxlan: Fix memory leaks in error path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53190",
    "datePublished": "2025-09-15T14:06:19.139Z",
    "dateReserved": "2025-09-15T13:59:19.066Z",
    "dateUpdated": "2025-09-15T14:06:19.139Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53190\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T14:15:41.277\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nvxlan: Fix memory leaks in error path\\n\\nThe memory allocated by vxlan_vnigroup_init() is not freed in the error\\npath, leading to memory leaks [1]. Fix by calling\\nvxlan_vnigroup_uninit() in the error path.\\n\\nThe leaks can be reproduced by annotating gro_cells_init() with\\nALLOW_ERROR_INJECTION() and then running:\\n\\n # echo \\\"100\\\" \u003e /sys/kernel/debug/fail_function/probability\\n # echo \\\"1\\\" \u003e /sys/kernel/debug/fail_function/times\\n # echo \\\"gro_cells_init\\\" \u003e /sys/kernel/debug/fail_function/inject\\n # printf %#x -12 \u003e /sys/kernel/debug/fail_function/gro_cells_init/retval\\n # ip link add name vxlan0 type vxlan dstport 4789 external vnifilter\\n RTNETLINK answers: Cannot allocate memory\\n\\n[1]\\nunreferenced object 0xffff88810db84a00 (size 512):\\n  comm \\\"ip\\\", pid 330, jiffies 4295010045 (age 66.016s)\\n  hex dump (first 32 bytes):\\n    f8 d5 76 0e 81 88 ff ff 01 00 00 00 00 00 00 02  ..v.............\\n    03 00 04 00 48 00 00 00 00 00 00 01 04 00 01 00  ....H...........\\n  backtrace:\\n    [\u003cffffffff81a3097a\u003e] kmalloc_trace+0x2a/0x60\\n    [\u003cffffffff82f049fc\u003e] vxlan_vnigroup_init+0x4c/0x160\\n    [\u003cffffffff82ecd69e\u003e] vxlan_init+0x1ae/0x280\\n    [\u003cffffffff836858ca\u003e] register_netdevice+0x57a/0x16d0\\n    [\u003cffffffff82ef67b7\u003e] __vxlan_dev_create+0x7c7/0xa50\\n    [\u003cffffffff82ef6ce6\u003e] vxlan_newlink+0xd6/0x130\\n    [\u003cffffffff836d02ab\u003e] __rtnl_newlink+0x112b/0x18a0\\n    [\u003cffffffff836d0a8c\u003e] rtnl_newlink+0x6c/0xa0\\n    [\u003cffffffff836c0ddf\u003e] rtnetlink_rcv_msg+0x43f/0xd40\\n    [\u003cffffffff83908ce0\u003e] netlink_rcv_skb+0x170/0x440\\n    [\u003cffffffff839066af\u003e] netlink_unicast+0x53f/0x810\\n    [\u003cffffffff839072d8\u003e] netlink_sendmsg+0x958/0xe70\\n    [\u003cffffffff835c319f\u003e] ____sys_sendmsg+0x78f/0xa90\\n    [\u003cffffffff835cd6da\u003e] ___sys_sendmsg+0x13a/0x1e0\\n    [\u003cffffffff835cd94c\u003e] __sys_sendmsg+0x11c/0x1f0\\n    [\u003cffffffff8424da78\u003e] do_syscall_64+0x38/0x80\\nunreferenced object 0xffff88810e76d5f8 (size 192):\\n  comm \\\"ip\\\", pid 330, jiffies 4295010045 (age 66.016s)\\n  hex dump (first 32 bytes):\\n    04 00 00 00 00 00 00 00 db e1 4f e7 00 00 00 00  ..........O.....\\n    08 d6 76 0e 81 88 ff ff 08 d6 76 0e 81 88 ff ff  ..v.......v.....\\n  backtrace:\\n    [\u003cffffffff81a3162e\u003e] __kmalloc_node+0x4e/0x90\\n    [\u003cffffffff81a0e166\u003e] kvmalloc_node+0xa6/0x1f0\\n    [\u003cffffffff8276e1a3\u003e] bucket_table_alloc.isra.0+0x83/0x460\\n    [\u003cffffffff8276f18b\u003e] rhashtable_init+0x43b/0x7c0\\n    [\u003cffffffff82f04a1c\u003e] vxlan_vnigroup_init+0x6c/0x160\\n    [\u003cffffffff82ecd69e\u003e] vxlan_init+0x1ae/0x280\\n    [\u003cffffffff836858ca\u003e] register_netdevice+0x57a/0x16d0\\n    [\u003cffffffff82ef67b7\u003e] __vxlan_dev_create+0x7c7/0xa50\\n    [\u003cffffffff82ef6ce6\u003e] vxlan_newlink+0xd6/0x130\\n    [\u003cffffffff836d02ab\u003e] __rtnl_newlink+0x112b/0x18a0\\n    [\u003cffffffff836d0a8c\u003e] rtnl_newlink+0x6c/0xa0\\n    [\u003cffffffff836c0ddf\u003e] rtnetlink_rcv_msg+0x43f/0xd40\\n    [\u003cffffffff83908ce0\u003e] netlink_rcv_skb+0x170/0x440\\n    [\u003cffffffff839066af\u003e] netlink_unicast+0x53f/0x810\\n    [\u003cffffffff839072d8\u003e] netlink_sendmsg+0x958/0xe70\\n    [\u003cffffffff835c319f\u003e] ____sys_sendmsg+0x78f/0xa90\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/06bf62944144a92d83dd14fd1378d2a288259561\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5896f55810680391a32652ca2b91245a05c11e22\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/75c1ab900f7cf0485f0be1607c79c55f51faaa90\",\"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.
  • 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…