CVE-2026-72118 (GCVE-0-2026-72118)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:52 – Updated: 2026-08-19 16:36
VLAI
Title
can: bcm: fix CAN frame rx/tx statistics
Summary
In the Linux kernel, the following vulnerability has been resolved: can: bcm: fix CAN frame rx/tx statistics KCSAN detected a data race within the bcm_rx_handler() when two CAN frames have been simultaneously received and processed in a single rx op by two different CPUs. Use atomic operations with (signed) long data types to access the statistics in the hot path to fix the KCSAN complaint. Additionally simplify the update and check of statistics overflow by using the atomic operations in separate bcm_update_[rx|tx]_stats() functions. The rx variant runs under bcm_rx_update_lock to prevent races when resetting the two rx counters; the tx variant runs under bcm_tx_lock and only needs to guard its own counter's overflow. As the rx path resets its values already at LONG_MAX / 100, there is no conflict between the two locking domains (bcm_rx_update_lock vs. bcm_tx_lock) even for ops that use both paths. The rx statistics update and the frames_filtered update in bcm_rx_changed() were previously performed in two separate bcm_rx_update_lock sections. For an rx op subscribed on all interfaces (ifindex == 0), bcm_rx_handler() can run concurrently on different CPUs, so a counter reset by one CPU between these two sections could leave frames_filtered larger than frames_abs on another CPU, producing a bogus (even negative) reduction percentage in procfs. Update the statistics in the same critical section as bcm_rx_changed() to close this gap, which also removes the now unneeded extra lock/unlock pair around the traffic_flags calculation.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < 640acf3566fc897065127001be875ebc5401c218 (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < 47fca0d1620f2d4fab0677564989ef2b9c225c66 (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < fd75884eae40a7be47867cbfc9fc84a80bb8ddb4 (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < 8b2783172d92edd650de6006ebd1c800937021ab (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < 970caff5c1a63702c80e08d920256bcb5f88ecc5 (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < 8104bcdb2612fdda95169ddc3b49747b2ff98d24 (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < df47f07cdc801a6afe05a486b5a343c3e532a93c (git)
Affected: ffd980f976e7fd666c2e61bf8ab35107efd11828 , < e6c24ba95fc3f1b5e1dcd28b1c6e59ef61a9daa5 (git)
guessed Create a notification for this product.
Linux Linux Affected: 2.6.25
Unaffected: 0 , < 2.6.25 (semver)
Unaffected: 5.10.265 , ≤ 5.10.* (semver)
Unaffected: 5.15.216 , ≤ 5.15.* (semver)
Unaffected: 6.1.183 , ≤ 6.1.* (semver)
Unaffected: 6.6.148 , ≤ 6.6.* (semver)
Unaffected: 6.12.101 , ≤ 6.12.* (semver)
Unaffected: 6.18.42 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/can/bcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "640acf3566fc897065127001be875ebc5401c218",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "47fca0d1620f2d4fab0677564989ef2b9c225c66",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "fd75884eae40a7be47867cbfc9fc84a80bb8ddb4",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "8b2783172d92edd650de6006ebd1c800937021ab",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "970caff5c1a63702c80e08d920256bcb5f88ecc5",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "8104bcdb2612fdda95169ddc3b49747b2ff98d24",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "df47f07cdc801a6afe05a486b5a343c3e532a93c",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            },
            {
              "lessThan": "e6c24ba95fc3f1b5e1dcd28b1c6e59ef61a9daa5",
              "status": "affected",
              "version": "ffd980f976e7fd666c2e61bf8ab35107efd11828",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/can/bcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.25"
            },
            {
              "lessThan": "2.6.25",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.265",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.216",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.183",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.148",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.101",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.42",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.265",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.216",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.183",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.148",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.101",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.42",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncan: bcm: fix CAN frame rx/tx statistics\n\nKCSAN detected a data race within the bcm_rx_handler() when two CAN frames\nhave been simultaneously received and processed in a single rx op by two\ndifferent CPUs.\n\nUse atomic operations with (signed) long data types to access the\nstatistics in the hot path to fix the KCSAN complaint.\n\nAdditionally simplify the update and check of statistics overflow by\nusing the atomic operations in separate bcm_update_[rx|tx]_stats()\nfunctions. The rx variant runs under bcm_rx_update_lock to prevent\nraces when resetting the two rx counters; the tx variant runs under\nbcm_tx_lock and only needs to guard its own counter\u0027s overflow.\n\nAs the rx path resets its values already at LONG_MAX / 100, there is\nno conflict between the two locking domains (bcm_rx_update_lock vs.\nbcm_tx_lock) even for ops that use both paths.\n\nThe rx statistics update and the frames_filtered update in\nbcm_rx_changed() were previously performed in two separate\nbcm_rx_update_lock sections. For an rx op subscribed on all interfaces\n(ifindex == 0), bcm_rx_handler() can run concurrently on different\nCPUs, so a counter reset by one CPU between these two sections could\nleave frames_filtered larger than frames_abs on another CPU, producing\na bogus (even negative) reduction percentage in procfs. Update the\nstatistics in the same critical section as bcm_rx_changed() to close\nthis gap, which also removes the now unneeded extra lock/unlock pair\naround the traffic_flags calculation."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-19T16:36:11.603Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/640acf3566fc897065127001be875ebc5401c218"
        },
        {
          "url": "https://git.kernel.org/stable/c/47fca0d1620f2d4fab0677564989ef2b9c225c66"
        },
        {
          "url": "https://git.kernel.org/stable/c/fd75884eae40a7be47867cbfc9fc84a80bb8ddb4"
        },
        {
          "url": "https://git.kernel.org/stable/c/8b2783172d92edd650de6006ebd1c800937021ab"
        },
        {
          "url": "https://git.kernel.org/stable/c/970caff5c1a63702c80e08d920256bcb5f88ecc5"
        },
        {
          "url": "https://git.kernel.org/stable/c/8104bcdb2612fdda95169ddc3b49747b2ff98d24"
        },
        {
          "url": "https://git.kernel.org/stable/c/df47f07cdc801a6afe05a486b5a343c3e532a93c"
        },
        {
          "url": "https://git.kernel.org/stable/c/e6c24ba95fc3f1b5e1dcd28b1c6e59ef61a9daa5"
        }
      ],
      "title": "can: bcm: fix CAN frame rx/tx statistics",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72118",
    "datePublished": "2026-08-15T05:52:57.734Z",
    "dateReserved": "2026-08-09T03:40:39.906Z",
    "dateUpdated": "2026-08-19T16:36:11.603Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72118",
      "date": "2026-08-24",
      "epss": "0.00211",
      "percentile": "0.11148"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72118\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:21:26.240\",\"lastModified\":\"2026-08-19T17:20:58.540\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncan: bcm: fix CAN frame rx/tx statistics\\n\\nKCSAN detected a data race within the bcm_rx_handler() when two CAN frames\\nhave been simultaneously received and processed in a single rx op by two\\ndifferent CPUs.\\n\\nUse atomic operations with (signed) long data types to access the\\nstatistics in the hot path to fix the KCSAN complaint.\\n\\nAdditionally simplify the update and check of statistics overflow by\\nusing the atomic operations in separate bcm_update_[rx|tx]_stats()\\nfunctions. The rx variant runs under bcm_rx_update_lock to prevent\\nraces when resetting the two rx counters; the tx variant runs under\\nbcm_tx_lock and only needs to guard its own counter\u0027s overflow.\\n\\nAs the rx path resets its values already at LONG_MAX / 100, there is\\nno conflict between the two locking domains (bcm_rx_update_lock vs.\\nbcm_tx_lock) even for ops that use both paths.\\n\\nThe rx statistics update and the frames_filtered update in\\nbcm_rx_changed() were previously performed in two separate\\nbcm_rx_update_lock sections. For an rx op subscribed on all interfaces\\n(ifindex == 0), bcm_rx_handler() can run concurrently on different\\nCPUs, so a counter reset by one CPU between these two sections could\\nleave frames_filtered larger than frames_abs on another CPU, producing\\na bogus (even negative) reduction percentage in procfs. Update the\\nstatistics in the same critical section as bcm_rx_changed() to close\\nthis gap, which also removes the now unneeded extra lock/unlock pair\\naround the traffic_flags calculation.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"net/can/bcm.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"640acf3566fc897065127001be875ebc5401c218\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"47fca0d1620f2d4fab0677564989ef2b9c225c66\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"fd75884eae40a7be47867cbfc9fc84a80bb8ddb4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"8b2783172d92edd650de6006ebd1c800937021ab\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"970caff5c1a63702c80e08d920256bcb5f88ecc5\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"8104bcdb2612fdda95169ddc3b49747b2ff98d24\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"df47f07cdc801a6afe05a486b5a343c3e532a93c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ffd980f976e7fd666c2e61bf8ab35107efd11828\",\"lessThan\":\"e6c24ba95fc3f1b5e1dcd28b1c6e59ef61a9daa5\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"net/can/bcm.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2.6.25\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"2.6.25\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.265\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.216\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.183\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.148\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.101\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.42\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/47fca0d1620f2d4fab0677564989ef2b9c225c66\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/640acf3566fc897065127001be875ebc5401c218\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8104bcdb2612fdda95169ddc3b49747b2ff98d24\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8b2783172d92edd650de6006ebd1c800937021ab\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/970caff5c1a63702c80e08d920256bcb5f88ecc5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/df47f07cdc801a6afe05a486b5a343c3e532a93c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e6c24ba95fc3f1b5e1dcd28b1c6e59ef61a9daa5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fd75884eae40a7be47867cbfc9fc84a80bb8ddb4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-17T22:48:17+00:00",
      "cve": "CVE-2026-72118",
      "id": "CVE-2026-72118",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: can: bcm: fix CAN frame rx/tx statistics",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72118.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…