---
id: CVE-2022-49817
title: 'net: mhi: Fix memory leak in mhi_net_dellink()'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net: mhi: Fix memory leak in mhi_net_dellink()

  MHI driver registers network device without setting the
  needs_free_netdev flag, and does NOT call free_netdev() when
  unr…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 13adac032982c61bb590669e8e87e51558917ca1 <
    88da008e5e2f9753726ea5a51ef2eb144e9de927
  - >-
    Linux >= 13adac032982c61bb590669e8e87e51558917ca1 <
    25a270343b0f16e1f6e65f541a15975a35e238ff
  - >-
    Linux >= 13adac032982c61bb590669e8e87e51558917ca1 <
    f7c125bd79f50ec6094761090be81d02726ec6f4
  - Linux 5.14
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:49:24.458084Z'
published: '2025-05-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:49:51.218Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-49817'
references:
  - url: 'https://git.kernel.org/stable/c/88da008e5e2f9753726ea5a51ef2eb144e9de927'
  - url: 'https://git.kernel.org/stable/c/25a270343b0f16e1f6e65f541a15975a35e238ff'
  - url: 'https://git.kernel.org/stable/c/f7c125bd79f50ec6094761090be81d02726ec6f4'
tags:
  - cve.org
epss: 0.00199
epssPercentile: 0.09815
ingestedAt: '2026-11-05T22:38:31.601Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

net: mhi: Fix memory leak in mhi_net_dellink()

MHI driver registers network device without setting the
needs_free_netdev flag, and does NOT call free_netdev() when
unregisters network device, which causes a memory leak.

This patch calls free_netdev() to fix it since netdev_priv
is used after unregister.

## Affected

- `Linux >= 13adac032982c61bb590669e8e87e51558917ca1 < 88da008e5e2f9753726ea5a51ef2eb144e9de927`
- `Linux >= 13adac032982c61bb590669e8e87e51558917ca1 < 25a270343b0f16e1f6e65f541a15975a35e238ff`
- `Linux >= 13adac032982c61bb590669e8e87e51558917ca1 < f7c125bd79f50ec6094761090be81d02726ec6f4`
- `Linux 5.14`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
