# CVE-2021-47307: cifs: prevent NULL deref in cifs_compose_mount_options()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/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.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:26.667Z
- Modified: 2026-08-05T08:47:11.403Z
- 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:

cifs: prevent NULL deref in cifs_compose_mount_options()

The optional @ref parameter might contain an NULL node_name, so
prevent dereferencing it in cifs_compose_mount_options().

Addresses-Coverity: 1476408 ("Explicit null dereferenced")

(As written by CVE List.)

## Affected

- Linux Linux: from 2c55608f28444c3f33b10312881384c470ceed56 before f7d1fa65e74263d11f90ddd33b4d4cd905a93759; from 2c55608f28444c3f33b10312881384c470ceed56 before e58c162789becede894d3e94c0ce6695a2ef5796; from 2c55608f28444c3f33b10312881384c470ceed56 before ae3d181f4e912f51af7776ea165f199b16fc165d; from 2c55608f28444c3f33b10312881384c470ceed56 before 03313d1c3a2f086bb60920607ab79ac8f8578306; 2.6.28 (not affected: before 2.6.28; from 5.4.135 up to 5.4.*; from 5.10.53 up to 5.10.*; from 5.13.5 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 5.4.135; from 5.5 before 5.10.53; from 5.11 before 5.13.5

## Every score

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

## References

- <https://git.kernel.org/stable/c/f7d1fa65e74263d11f90ddd33b4d4cd905a93759> (patch)
- <https://git.kernel.org/stable/c/e58c162789becede894d3e94c0ce6695a2ef5796> (patch)
- <https://git.kernel.org/stable/c/ae3d181f4e912f51af7776ea165f199b16fc165d> (patch)
- <https://git.kernel.org/stable/c/03313d1c3a2f086bb60920607ab79ac8f8578306> (patch)

## Sources

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

---

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