socket: Improve fortify with clang
[glibc.git] / advisories / README
blob94e68b1350bbad0e2dbd70146dc94a83d3b61475
1 GNU C Library Security Advisory Format
2 ======================================
4 Security advisories in this directory follow a simple git commit log
5 format, with a heading and free-format description augmented with tags
6 to allow parsing key information.  References to code changes are
7 specific to the glibc repository and follow a specific format:
9   Tag-name: <commit-ref> (release-version)
11 The <commit-ref> indicates a specific commit in the repository.  The
12 release-version indicates the publicly consumable release in which this
13 commit is known to exist.  The release-version is derived from the
14 git-describe format, (i.e. stripped out from glibc-2.34.NNN-gxxxx) and
15 is of the form 2.34-NNN.  If the -NNN suffix is absent, it means that
16 the change is in that release tarball, otherwise the change is on the
17 release/2.YY/master branch and not in any released tarball.
19 The following tags are currently being used:
21 CVE-Id:
22 This is the CVE-Id assigned under the CVE Program
23 (https://www.cve.org/).
25 Public-Date:
26 The date this issue became publicly known.
28 Vulnerable-Commit:
29 The commit that introduced this vulnerability.  There could be multiple
30 entries, one for each release branch in the glibc repository; the
31 release-version portion of this tag should tell you which branch this is
32 on.
34 Fix-Commit:
35 The commit that fixed this vulnerability.  There could be multiple
36 entries for each release branch in the glibc repository, indicating that
37 all of those commits contributed to fixing that issue in each of those
38 branches.
40 Adding an Advisory
41 ------------------
43 An advisory for a CVE needs to be added on the master branch in two steps:
45 1. Add the text of the advisory without any Fix-Commit tags along with
46    the fix for the CVE.  Add the Vulnerable-Commit tag, if applicable.
47    The advisories directory does not exist in release branches, so keep
48    the advisory text commit distinct from the code changes, to ease
49    backports.  Ask for the GLIBC-SA advisory number from the security
50    team.
52 2. Finish all backports on release branches and then back on the msater
53    branch, add all commit refs to the advisory using the Fix-Commit
54    tags.  Don't bother adding the release-version subscript since the
55    next step will overwrite it.
57 3. Run the process-advisories.sh script in the scripts directory on the
58    advisory:
60      scripts/process-advisories.sh update GLIBC-SA-YYYY-NNNN
62    (replace YYYY-NNNN with the actual advisory number).
64 4. Verify the updated advisory and push the result.
66 Getting a NEWS snippet from advisories
67 --------------------------------------
69 Run:
71   scripts/process-advisories.sh news
73 and copy the content into the NEWS file.