# CVE-2022-49807: nvmet: fix a memory leak in nvmet\_auth\_set\_key

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-05-01T14:09:33.492Z
- **Modified:** 2026-11-05T20:17:13.067Z

## Who should check

- Anyone running Linux \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 65710ea51d4a185592c7b14c9e33d0c4a364f074; \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 0a52566279b4ee65ecd2503d7b7342851f84755c
- Anyone running Linux 6.0

## Description

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

nvmet: fix a memory leak in nvmet\_auth\_set\_key

When changing dhchap secrets we need to release the old
secrets as well.

kmemleak complaint:
--
unreferenced object 0xffff8c7f44ed8180 (size 64):
  comm "check", pid 7304, jiffies 4295686133 (age 72034.246s)
  hex dump (first 32 bytes):
    44 48 48 43 2d 31 3a 30 30 3a 4c 64 4c 4f 64 71  DHHC-1:00:LdLOdq
    79 56 69 67 77 48 55 32 6d 5a 59 4c 7a 35 59 38  yVigwHU2mZYLz5Y8
  backtrace:
    \[\<00000000b6fc5071\>\] kstrdup+0x2e/0x60
    \[\<00000000f0f4633f\>\] 0xffffffffc0e07ee6
    \[\<0000000053006c05\>\] 0xffffffffc0dff783
    \[\<00000000419ae922\>\] configfs\_write\_iter+0xb1/0x120
    \[\<000000008183c424\>\] vfs\_write+0x2be/0x3c0
    \[\<000000009005a2a5\>\] ksys\_write+0x5f/0xe0
    \[\<00000000cd495c89\>\] do\_syscall\_64+0x38/0x90
    \[\<00000000f2a84ac5\>\] entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 65710ea51d4a185592c7b14c9e33d0c4a364f074; \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 0a52566279b4ee65ecd2503d7b7342851f84755c (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 0a52566279b4ee65ecd2503d7b7342851f84755c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49807. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49807.md
Affected: Linux >= db1312dd95488b5e6ff362ff66fcf953a46b1821, < 65710ea51d4a185592c7b14c9e33d0c4a364f074; >= db1312dd95488b5e6ff362ff66fcf953a46b1821, < 0a52566279b4ee65ecd2503d7b7342851f84755c; Linux 6.0
Fixed in: Linux 65710ea51d4a185592c7b14c9e33d0c4a364f074, Linux 0a52566279b4ee65ecd2503d7b7342851f84755c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49807 being exploited?

There is no confirmed exploitation: CVE-2022-49807 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49807?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49807?

Linux \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 65710ea51d4a185592c7b14c9e33d0c4a364f074; \>= db1312dd95488b5e6ff362ff66fcf953a46b1821, \< 0a52566279b4ee65ecd2503d7b7342851f84755c; Linux 6.0.

### Is there a fix for CVE-2022-49807?

Yes. Fixed in Linux 65710ea51d4a185592c7b14c9e33d0c4a364f074, Linux 0a52566279b4ee65ecd2503d7b7342851f84755c. Upgrade Linux to 0a52566279b4ee65ecd2503d7b7342851f84755c or later.

### How do I check if I'm affected by CVE-2022-49807?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/65710ea51d4a185592c7b14c9e33d0c4a364f074>
- patch: <https://git.kernel.org/stable/c/0a52566279b4ee65ecd2503d7b7342851f84755c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49807>

HTML: <https://flawdb.com/CVE-2022-49807> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49807>
