CVE-2021-47294

netrom: Decrease sock refcount when sock timers expire

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 23, 2026
Reserved
May 21, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ce29e8a259de767f7210d346ad2b031cb8ab2732 to before 853262355518cd1247515b74e83fabf038aa6c29Affected
  • baa9e32336bf6d0d74a7c3486d2a27feaf57cd5f to before a01634bf91f2b6c42583770eb6815fb6d1e251cfAffected
  • 0adf571fa34b27bd0b97b408cc0f0dc54b72f0eb to before 48866fd5c361ea417ed24b43fc2a7dc2f5b060efAffected
  • 2c6b572458a9127e8070df13fa7f115c29ab1d92 to before 9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950Affected
  • 63346650c1a94a92be61a57416ac88c0a47c4327 to before 25df44e90ff5959b5c24ad361b648504a7e39ef3Affected
  • 63346650c1a94a92be61a57416ac88c0a47c4327 to before 6811744bd0efb9e472cb15d066cdb460beb8cb8aAffected
  • 63346650c1a94a92be61a57416ac88c0a47c4327 to before bc1660206c3723c37ed4d622ad81781f1e987250Affected
  • 63346650c1a94a92be61a57416ac88c0a47c4327 to before 517a16b1a88bdb6b530f48d5d153478b2552d9a8Affected
  • f1d9a1f2ef6ff17293d21d5e6b80e04bea0cf508Affected
  • 519e8a22a454b1f1baa3a151b184fe51bc18e178Affected
  • 4.4.173 to before 4.4.277Affected
  • 4.9.155 to before 4.9.277Affected
  • 4.14.98 to before 4.14.241Affected
  • 4.19.20 to before 4.19.199Affected
  • 3.18.134 to before 3.19Affected
  • 4.20.7 to before 4.21Affected
LinuxLinux
  • 5.0Affected
  • before 5.0Not affected
  • 4.4.277 through 4.4.*Not affected
  • 4.9.277 through 4.9.*Not affected
  • 4.14.241 through 4.14.*Not affected
  • 4.19.199 through 4.19.*Not affected
  • 5.4.136 through 5.4.*Not affected
  • 5.10.54 through 5.10.*Not affected
  • 5.13.6 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.