# CVE-2021-47518: nfc: fix potential NULL pointer deref in nfc_genl_dump_ses_done

- 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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-24T15:09:31.334Z
- Modified: 2026-06-17T04:17:40.657Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

nfc: fix potential NULL pointer deref in nfc_genl_dump_ses_done

The done() netlink callback nfc_genl_dump_ses_done() should check if
received argument is non-NULL, because its allocation could fail earlier
in dumpit() (nfc_genl_dump_ses()).

(As written by CVE List.)

## Affected

- Linux Linux: from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 87cdb8789c38e44ae5454aafe277997c950d00ed; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 69bb79a8f5bb9f436b6f1434ca9742591b7bbe18; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 811a7576747760bcaf60502f096d1e6e91d566fa; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 3b861a40325eac9c4c13b6c53874ad90617e944d; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 48fcd08fdbe05e35b650a252ec2a2d96057a1c7a; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 83ea620a1be840bf05089a5061fb8323ca42f38c; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before fae9705d281091254d4a81fa2da9d22346097dca; from ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95 before 4cd8371a234d051f9c9557fcbb1f8c523b1c0d10; 3.12 (not affected: before 3.12; from 4.4.295 up to 4.4.*; from 4.9.293 up to 4.9.*; from 4.14.258 up to 4.14.*; from 4.19.221 up to 4.19.*; from 5.4.165 up to 5.4.*; from 5.10.85 up to 5.10.*; from 5.15.8 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 3.12 before 4.4.295; from 4.5 before 4.9.293; from 4.10 before 4.14.258; from 4.15 before 4.19.221; from 4.20 before 5.4.165; from 5.5 before 5.10.85; from 5.11 before 5.15.8

## References

- <https://git.kernel.org/stable/c/87cdb8789c38e44ae5454aafe277997c950d00ed> (patch)
- <https://git.kernel.org/stable/c/69bb79a8f5bb9f436b6f1434ca9742591b7bbe18> (patch)
- <https://git.kernel.org/stable/c/811a7576747760bcaf60502f096d1e6e91d566fa> (patch)
- <https://git.kernel.org/stable/c/3b861a40325eac9c4c13b6c53874ad90617e944d> (patch)
- <https://git.kernel.org/stable/c/48fcd08fdbe05e35b650a252ec2a2d96057a1c7a> (patch)
- <https://git.kernel.org/stable/c/83ea620a1be840bf05089a5061fb8323ca42f38c> (patch)
- <https://git.kernel.org/stable/c/fae9705d281091254d4a81fa2da9d22346097dca> (patch)
- <https://git.kernel.org/stable/c/4cd8371a234d051f9c9557fcbb1f8c523b1c0d10> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47518 · Whole record: https://cve.day/CVE-2021-47518.json · Rebuilt by cve.day 2026-11-25T22:58:08.897Z
