# CVE-2023-53369: net: dcb: choose correct policy to parse DCB_ATTR_BCN

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-02)
- Published: 2025-09-18T13:33:17.384Z
- Modified: 2026-06-17T06:45:07.470Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: dcb: choose correct policy to parse DCB_ATTR_BCN

The dcbnl_bcn_setcfg uses erroneous policy to parse tb[DCB_ATTR_BCN],
which is introduced in commit 859ee3c43812 ("DCB: Add support for DCB
BCN"). Please see the comment in below code

static int dcbnl_bcn_setcfg(...)
{
  ...
  ret = nla_parse_nested_deprecated(..., dcbnl_pfc_up_nest, .. )
  // !!! dcbnl_pfc_up_nest for attributes
  //  DCB_PFC_UP_ATTR_0 to DCB_PFC_UP_ATTR_ALL in enum dcbnl_pfc_up_attrs
  ...
  for (i = DCB_BCN_ATTR_RP_0; i <= DCB_BCN_ATTR_RP_7; i++) {
  // !!! DCB_BCN_ATTR_RP_0 to DCB_BCN_ATTR_RP_7 in enum dcbnl_bcn_attrs
    ...
    value_byte = nla_get_u8(data[i]);
    ...
  }
  ...
  for (i = DCB_BCN_ATTR_BCNA_0; i <= DCB_BCN_ATTR_RI; i++) {
  // !!! DCB_BCN_ATTR_BCNA_0 to DCB_BCN_ATTR_RI in enum dcbnl_bcn_attrs
  ...
    value_int = nla_get_u32(data[i]);
  ...
  }
  ...
}

That is, the nla_parse_nested_deprecated uses dcbnl_pfc_up_nest
attributes to parse nlattr defined in dcbnl_pfc_up_attrs. But the
following access code fetch each nlattr as dcbnl_bcn_attrs attributes.
By looking up the associated nla_policy for dcbnl_bcn_attrs. We can find
the beginning part of these two policies are "same".

static const struct nla_policy dcbnl_pfc_up_nest[...] = {
        [DCB_PFC_UP_ATTR_0]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_1]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_2]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_3]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_4]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_5]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_6]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_7]   = {.type = NLA_U8},
        [DCB_PFC_UP_ATTR_ALL] = {.type = NLA_FLAG},
};

static const struct nla_policy dcbnl_bcn_nest[...] = {
        [DCB_BCN_ATTR_RP_0]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_1]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_2]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_3]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_4]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_5]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_6]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_7]         = {.type = NLA_U8},
        [DCB_BCN_ATTR_RP_ALL]       = {.type = NLA_FLAG},
        // from here is somewhat different
        [DCB_BCN_ATTR_BCNA_0]       = {.type = NLA_U32},
        ...
        [DCB_BCN_ATTR_ALL]          = {.type = NLA_FLAG},
};

Therefore, the current code is buggy and this
nla_parse_nested_deprecated could overflow the dcbnl_pfc_up_nest and use
the adjacent nla_policy to parse attributes from DCB_BCN_ATTR_BCNA_0.

Hence use the correct policy dcbnl_bcn_nest to parse the nested
tb[DCB_ATTR_BCN] TLV.

(As written by CVE List.)

## Affected

- Linux Linux: from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before 5b3dbedb8d4a0f9f7ce904d76b885438af2a21f9; from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before 8e309f43d0ca4051d20736c06a6f84bbddd881da; from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before a0da2684db18dead3bcee12fb185e596e3d63c2b; from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before ecff20e193207b44fdbfe64d7de89890f0a7fe6c; from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before 199fde04bd875d28b3a5ca525eaaa004eec6e947; from 859ee3c43812051e21816c6d6d4cc04fb7ce9b2e before 31d49ba033095f6e8158c60f69714a500922e0c3; 2.6.29 (not affected: before 2.6.29; from 5.4.253 up to 5.4.*; from 5.10.190 up to 5.10.*; from 5.15.126 up to 5.15.*; from 6.1.45 up to 6.1.*; from 6.4.10 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 2.6.29 before 5.4.253; from 5.5 before 5.10.190; from 5.11 before 5.15.126; from 5.16 before 6.1.45; from 6.2 before 6.4.10; 6.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5b3dbedb8d4a0f9f7ce904d76b885438af2a21f9> (patch)
- <https://git.kernel.org/stable/c/8e309f43d0ca4051d20736c06a6f84bbddd881da> (patch)
- <https://git.kernel.org/stable/c/a0da2684db18dead3bcee12fb185e596e3d63c2b> (patch)
- <https://git.kernel.org/stable/c/ecff20e193207b44fdbfe64d7de89890f0a7fe6c> (patch)
- <https://git.kernel.org/stable/c/199fde04bd875d28b3a5ca525eaaa004eec6e947> (patch)
- <https://git.kernel.org/stable/c/31d49ba033095f6e8158c60f69714a500922e0c3> (patch)

## Sources

- CVE List: [CVE-2023-53369](https://www.cve.org/CVERecord?id=CVE-2023-53369), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53369](https://nvd.nist.gov/vuln/detail/CVE-2023-53369), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53369 · Whole record: https://cve.day/CVE-2023-53369.json · Rebuilt by cve.day 2026-11-25T22:58:34.854Z
