# CVE-2022-49956: staging: rtl8712: fix use after free bugs

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-06-18T11:00:18.341Z
- Modified: 2026-08-05T08:56:53.613Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

staging: rtl8712: fix use after free bugs

_Read/Write_MACREG callbacks are NULL so the read/write_macreg_hdl()
functions don't do anything except free the "pcmd" pointer.  It
results in a use after free.  Delete them.

(As written by CVE List.)

## Affected

- Linux Linux: from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before 7dce6b0ee7d78667d6c831ced957a08769973063; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before 376e15487fec837301d888068a3fcc82efb6171a; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before 9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before d0aac7146e96bf39e79c65087d21dfa02ef8db38; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before 19e3f69d19801940abc2ac37c169882769ed9770; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before dc02aaf950015850e7589696521c7fca767cea77; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before b1727def850904e4b8ba384043775672841663a1; from 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef before e230a4455ac3e9b112f0367d1b8e255e141afae0; 2.6.37 (not affected: before 2.6.37; from 4.9.328 up to 4.9.*; from 4.14.293 up to 4.14.*; from 4.19.258 up to 4.19.*; from 5.4.213 up to 5.4.*; from 5.10.142 up to 5.10.*; from 5.15.66 up to 5.15.*; from 5.19.8 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 2.6.37 before 4.9.328; from 4.10 before 4.14.293; from 4.15 before 4.19.258; from 4.20 before 5.4.213; from 5.5 before 5.10.142; from 5.11 before 5.15.66; from 5.16 before 5.19.8; 6.0

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/7dce6b0ee7d78667d6c831ced957a08769973063> (patch)
- <https://git.kernel.org/stable/c/376e15487fec837301d888068a3fcc82efb6171a> (patch)
- <https://git.kernel.org/stable/c/9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27> (patch)
- <https://git.kernel.org/stable/c/d0aac7146e96bf39e79c65087d21dfa02ef8db38> (patch)
- <https://git.kernel.org/stable/c/19e3f69d19801940abc2ac37c169882769ed9770> (patch)
- <https://git.kernel.org/stable/c/dc02aaf950015850e7589696521c7fca767cea77> (patch)
- <https://git.kernel.org/stable/c/b1727def850904e4b8ba384043775672841663a1> (patch)
- <https://git.kernel.org/stable/c/e230a4455ac3e9b112f0367d1b8e255e141afae0> (patch)

## Sources

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

---

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