# CVE-2022-48885: ice: Fix potential memory leak in ice_gnss_tty_write()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-08-21T06:10:16.947Z
- Modified: 2026-06-17T05:16:31.757Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ice: Fix potential memory leak in ice_gnss_tty_write()

The ice_gnss_tty_write() return directly if the write_buf alloc failed,
leaking the cmd_buf.

Fix by free cmd_buf if write_buf alloc failed.

(As written by CVE List.)

## Affected

- Linux Linux: from d6b98c8d242aee40e7b8919dd07b593b0739e38d before 500ca1da9d0876244eb4d1b0ece6fa0e9968d45d; from d6b98c8d242aee40e7b8919dd07b593b0739e38d before f58985620f55580a07d40062c4115d8c9cf6ae27; 6.0 (not affected: before 6.0; from 6.1.7 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.0 before 6.1.7; 6.2

## References

- <https://git.kernel.org/stable/c/500ca1da9d0876244eb4d1b0ece6fa0e9968d45d> (patch)
- <https://git.kernel.org/stable/c/f58985620f55580a07d40062c4115d8c9cf6ae27> (patch)

## Sources

- CVE List: [CVE-2022-48885](https://www.cve.org/CVERecord?id=CVE-2022-48885), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48885](https://nvd.nist.gov/vuln/detail/CVE-2022-48885), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48885 · Whole record: https://cve.day/CVE-2022-48885.json · Rebuilt by cve.day 2026-11-25T22:58:19.943Z
