Skip to content
Heist/ feed
High

start_kernel: Add __no_stack_protector function attribute

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: start_kernel: Add __no_stack_protector function attribute Back during the discussion of commit a9a3ed1eff36 ("x86: Fix early boot crash on gcc-10, third try") we discussed the need for a function attribute to control the omission of stack protectors on a per-function basis; at the time Clang had support for no_stack_protector but GCC did not. This was fixed in gcc-11. Now that the function attribute is available, let's start using it. Callers of boot_init_stack_canary need to use this function attribute unless they're compiled with -fno-stack-protector, otherwise the canary stored in the stack slot of the caller will differ upon the call to boot_init_stack_canary. This will lead to a call to __stack_chk_fail() then panic.

Announced Source revision 1
Original source ↗

CVE-2023-53491

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2023-53491

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "420594296838fdc9a674470d710cda7d1487f9f4",
        "lessThan": "5a7e8f89cdee16db705905a5b1ce2100b13dd63e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "420594296838fdc9a674470d710cda7d1487f9f4",
        "lessThan": "25e73018b4093e0cfbcec5dc4a4bb86d0b69ed56",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "420594296838fdc9a674470d710cda7d1487f9f4",
        "lessThan": "514ca14ed5444b911de59ed3381dfd195d99fe4b",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "arch/powerpc/kernel/smp.c",
      "include/linux/compiler_attributes.h",
      "init/main.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.30"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.30",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.189",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.4.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.4.*"
      },
      {
        "status": "unaffected",
        "version": "6.5",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "arch/powerpc/kernel/smp.c",
      "include/linux/compiler_attributes.h",
      "init/main.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2023-53491

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30273 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement