netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write() (Linux Linux)

CVE-2024-50259
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write() This was found by a static analyzer. We should not forget the trailing zero after copy_from_user() if we will further do some string operations, sscanf() in this case. Adding a trailing zero will ensure that the function performs properly.

Weaknesses (CWE)

  • CWE-125 — Out-of-bounds Read

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected c6385c0b67c527b298111775bc89a7407ba1581e < c2150f666c6fc301d5d1643ed0f92251f1a0ff0d ; affected c6385c0b67c527b298111775bc89a7407ba1581e < bcba86e03b3aac361ea671672cf48eed11f9011c ; affected c6385c0b67c527b298111775bc89a7407ba1581e < 6a604877160fe5ab2e1985d5ce1ba6a61abe0693 ; affected c6385c0b67c527b298111775bc89a7407ba1581e < 27bd7a742e171362c9eb52ad5d1d71d3321f949f ; affected c6385c0b67c527b298111775bc89a7407ba1581e < 4ce1f56a1eaced2523329bef800d004e30f2f76c
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 5.15.171 ≤ 5.15.* ; unaffected 6.1.116 ≤ 6.1.* ; unaffected 6.6.60 ≤ 6.6.* ; unaffected 6.11.7 ≤ 6.11.*

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