# CVE-2021-47294: netrom: Decrease sock refcount when sock timers expire

- 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.28%, higher than 21% of CVEs (2026-12-02)
- Published: 2024-05-21T14:35:18.034Z
- Modified: 2026-06-17T04:17:07.440Z
- Weaknesses: CWE-672
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

netrom: Decrease sock refcount when sock timers expire

Commit 63346650c1a9 ("netrom: switch to sock timer API") switched to use
sock timer API. It replaces mod_timer() by sk_reset_timer(), and
del_timer() by sk_stop_timer().

Function sk_reset_timer() will increase the refcount of sock if it is
called on an inactive timer, hence, in case the timer expires, we need to
decrease the refcount ourselves in the handler, otherwise, the sock
refcount will be unbalanced and the sock will never be freed.

(As written by CVE List.)

## Affected

- Linux Linux: from ce29e8a259de767f7210d346ad2b031cb8ab2732 before 853262355518cd1247515b74e83fabf038aa6c29; from baa9e32336bf6d0d74a7c3486d2a27feaf57cd5f before a01634bf91f2b6c42583770eb6815fb6d1e251cf; from 0adf571fa34b27bd0b97b408cc0f0dc54b72f0eb before 48866fd5c361ea417ed24b43fc2a7dc2f5b060ef; from 2c6b572458a9127e8070df13fa7f115c29ab1d92 before 9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950; from 63346650c1a94a92be61a57416ac88c0a47c4327 before 25df44e90ff5959b5c24ad361b648504a7e39ef3; from 63346650c1a94a92be61a57416ac88c0a47c4327 before 6811744bd0efb9e472cb15d066cdb460beb8cb8a; from 63346650c1a94a92be61a57416ac88c0a47c4327 before bc1660206c3723c37ed4d622ad81781f1e987250; from 63346650c1a94a92be61a57416ac88c0a47c4327 before 517a16b1a88bdb6b530f48d5d153478b2552d9a8; f1d9a1f2ef6ff17293d21d5e6b80e04bea0cf508; 519e8a22a454b1f1baa3a151b184fe51bc18e178; from 4.4.173 before 4.4.277; from 4.9.155 before 4.9.277; and 5 more (not affected: before 5.0; from 4.4.277 up to 4.4.*; from 4.9.277 up to 4.9.*; from 4.14.241 up to 4.14.*; from 4.19.199 up to 4.19.*; from 5.4.136 up to 5.4.*; from 5.10.54 up to 5.10.*; from 5.13.6 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 4.4.173 before 4.4.277; from 4.9.155 before 4.9.277; from 4.14.98 before 4.14.241; from 4.19.20 before 4.19.199; from 5.0 before 5.4.136; from 5.5 before 5.10.54; from 5.11 before 5.13.6; 3.18.134; 4.20.7; 5.14

## References

- <https://git.kernel.org/stable/c/853262355518cd1247515b74e83fabf038aa6c29> (patch)
- <https://git.kernel.org/stable/c/a01634bf91f2b6c42583770eb6815fb6d1e251cf> (patch)
- <https://git.kernel.org/stable/c/48866fd5c361ea417ed24b43fc2a7dc2f5b060ef> (patch)
- <https://git.kernel.org/stable/c/9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950> (patch)
- <https://git.kernel.org/stable/c/25df44e90ff5959b5c24ad361b648504a7e39ef3> (patch)
- <https://git.kernel.org/stable/c/6811744bd0efb9e472cb15d066cdb460beb8cb8a> (patch)
- <https://git.kernel.org/stable/c/bc1660206c3723c37ed4d622ad81781f1e987250> (patch)
- <https://git.kernel.org/stable/c/517a16b1a88bdb6b530f48d5d153478b2552d9a8> (patch)

## Sources

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

---

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