CVE-2021-47294

netrom: Decrease sock refcount when sock timers expire

MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.28 % · percentile 20 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-672 — Operation on a Resource after Expiration or Release

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected ce29e8a259de767f7210d346ad2b031cb8ab2732 < 853262355518cd1247515b74e83fabf038aa6c29 ; affected baa9e32336bf6d0d74a7c3486d2a27feaf57cd5f < a01634bf91f2b6c42583770eb6815fb6d1e251cf ; affected 0adf571fa34b27bd0b97b408cc0f0dc54b72f0eb < 48866fd5c361ea417ed24b43fc2a7dc2f5b060ef ; affected 2c6b572458a9127e8070df13fa7f115c29ab1d92 < 9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950 ; affected 63346650c1a94a92be61a57416ac88c0a47c4327 < 25df44e90ff5959b5c24ad361b648504a7e39ef3 ; affected 63346650c1a94a92be61a57416ac88c0a47c4327 < 6811744bd0efb9e472cb15d066cdb460beb8cb8a
Linux · Linuxaffected 5.0 ; unaffected 0 < 5.0 ; unaffected 4.4.277 ≤ 4.4.* ; unaffected 4.9.277 ≤ 4.9.* ; unaffected 4.14.241 ≤ 4.14.* ; unaffected 4.19.199 ≤ 4.19.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD