Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp() (Linux Linux)

CVE-2026-43062
HIGH 7.1

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: Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp() l2cap_ecred_reconf_rsp() casts the incoming data to struct l2cap_ecred_conn_rsp (the ECRED *connection* response, 8 bytes with result at offset 6) instead of struct l2cap_ecred_reconf_rsp (2 bytes with result at offset 0). This causes two problems: - The sizeof(*rsp) length check requires 8 bytes instead of the correct 2, so valid L2CAP_ECRED_RECONF_RSP packets are rejected with -EPROTO. - rsp->result reads from offset 6 instead of offset 0, returning wrong data when the packet is large enough to pass the check. Fix by using the correct type. Also pass the already byte-swapped result variable to BT_DBG instead of the raw __le16 field.

Weaknesses (CWE)

  • CWE-843 — Access of Resource Using Incompatible Type

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 15f02b91056253e8cdc592888f431da0731337b8 < 21d3ba696918d6373233aac0b9d51fcabdedddc0 ; affected 15f02b91056253e8cdc592888f431da0731337b8 < 3b94e62caa1dc1198d0d55d97bd710da1dee15d7 ; affected 15f02b91056253e8cdc592888f431da0731337b8 < 111f74547eee8cfedfb854284e80f35c8a491186 ; affected 15f02b91056253e8cdc592888f431da0731337b8 < dd3b221e21079ade8263fbb7176f3d55ad75d3b6 ; affected 15f02b91056253e8cdc592888f431da0731337b8 < d90150c72d2e6a8a3079e88755dafcfbe91c746d ; affected 15f02b91056253e8cdc592888f431da0731337b8 < 5a1ea296f8589ce8f1e3141b2b123b34ad010e19
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.167 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.*

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