NFC: nci: Bounds check struct nfc_target arrays (Linux Linux)

CVE-2022-48967
HIGH 8.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: NFC: nci: Bounds check struct nfc_target arrays While running under CONFIG_FORTIFY_SOURCE=y, syzkaller reported: memcpy: detected field-spanning write (size 129) of single field "target->sensf_res" at net/nfc/nci/ntf.c:260 (size 18) This appears to be a legitimate lack of bounds checking in nci_add_new_protocol(). Add the missing checks.

Weaknesses (CWE)

  • CWE-129 — Improper Validation of Array Index

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < 6b37f0dc0638d13a006f2f24d2f6ca61e83bc714 ; affected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < dbdcfb9f6748218a149f62468d6297ce3f014e9c ; affected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < cff35329070b96b4484d23f9f48a5ca2c947e750 ; affected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < 6778434706940b8fad7ef35f410d2b9929f256d2 ; affected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < 27eb2d7a1b9987b6d0429b7716b1ff3b82c4ffc9 ; affected 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 < 908b2da426fe9c3ce74cf541ba40e7a4251db191
Linux · Linuxaffected 3.4 ; unaffected 0 < 3.4 ; unaffected 4.9.336 ≤ 4.9.* ; unaffected 4.14.302 ≤ 4.14.* ; unaffected 4.19.269 ≤ 4.19.* ; unaffected 5.4.227 ≤ 5.4.*

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