diff --git a/cves/kernel/CVE-2013-3302.yml b/cves/kernel/CVE-2013-3302.yml index 8b4ec3989..fc32609e3 100644 --- a/cves/kernel/CVE-2013-3302.yml +++ b/cves/kernel/CVE-2013-3302.yml @@ -19,14 +19,14 @@ curated_instructions: | This will enable additional editorial checks on this file to make sure you fill everything out properly. If you are a student, we cannot accept your work as finished unless curated is properly updated. -curation_level: 0 +curation_level: 2 reported_instructions: | What date was the vulnerability reported to the security team? Look at the security bulletins and bug reports. It is not necessarily the same day that the CVE was created. Leave blank if no date is given. Please enter your date in YYYY-MM-DD format. -reported_date: +reported_date: "2012-01-30" announced_instructions: | Was there a date that this vulnerability was announced to the world? You can find this in changelogs, blogs, bug reports, or perhaps the CVE date. @@ -34,11 +34,11 @@ announced_instructions: | This is not the same as published date in the NVD - that is below. Please enter your date in YYYY-MM-DD format. -announced_date: '2013-04-29' +announced_date: "2013-04-29" published_instructions: | Is there a published fix or patch date for this vulnerability? Please enter your date in YYYY-MM-DD format. -published_date: '2013-04-29' +published_date: "2013-04-29" description_instructions: | You can get an initial description from the CVE entry on cve.mitre.org. These descriptions are a fine start, but they can be kind of jargony. @@ -55,7 +55,15 @@ description_instructions: | Your target audience is people just like you before you took any course in security -description: +description: | + This issue is caused by a race condition for the ssocket. If the respource is + reached and is NULL before it was set then it can cause a crash from a NULL pointer + dereference or potentially open the system up to other security issues. + + The fix moves the NULL socket check into the `smb_send_rqst` function, which + handles server requests. This ensures the check is conducted earlier, + preventing a NULL socket from being passed to the `kernel_setsockopt` + function. This mitigates the risk of a kernel crash due to the race condition. bounty_instructions: | If you came across any indications that a bounty was paid out for this vulnerability, fill it out here. Or correct it if the information already here @@ -84,14 +92,8 @@ fixes_instructions: | Place any notes you would like to make in the notes field. fixes: -- commit: - note: -- commit: - note: -- commit: ea702b80e0bbb2448e201472127288beb82ca2fe - note: | - Taken from NVD references list with Git commit. If you are - curating, please fact-check that this commit fixes the vulnerability and replace this comment with 'Manually confirmed' + - commit: ea702b80e0bbb2448e201472127288beb82ca2fe + note: Manually Confirmed vcc_instructions: | The vulnerability-contributing commits. @@ -105,14 +107,14 @@ vcc_instructions: | Place any notes you would like to make in the notes field. vccs: -- commit: 6f49f46b187df34539f1e5df2469b8a541897700 - note: Discovered automatically by archeogit. -- commit: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - note: Discovered automatically by archeogit. -- commit: b8eed28375a43e1c9aaa9d15af2a052aae0d0725 - note: Discovered automatically by archeogit. -- commit: 3e84469d0101456caceffc6b22218a49017fcd3f - note: Discovered automatically by archeogit. + - commit: 6f49f46b187df34539f1e5df2469b8a541897700 + note: Manually Confirmed + - commit: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 + note: Manually Confirmed + - commit: b8eed28375a43e1c9aaa9d15af2a052aae0d0725 + note: Manually Confirmed + - commit: 3e84469d0101456caceffc6b22218a49017fcd3f + note: Manually Confirmed upvotes_instructions: | For the first round, ignore this upvotes number. @@ -120,7 +122,7 @@ upvotes_instructions: | upvotes to each vulnerability you see. Your peers will tell you how interesting they think this vulnerability is, and you'll add that to the upvotes score on your branch. -upvotes: +upvotes: 3 unit_tested: question: | Were automated unit tests involved in this vulnerability? @@ -135,10 +137,14 @@ unit_tested: For the fix_answer below, check if the fix for the vulnerability involves adding or improving an automated test to ensure this doesn't happen again. - code: - code_answer: - fix: - fix_answer: + code: false + code_answer: | + I was unable to find any unit tests for this module. It does not seem like + any automated tests were made to ensure this does not happen again. + fix: false + fix_answer: | + I was unable to find any unit tests for this module. It does not seem like + any automated tests were made to ensure this does not happen again. discovered: question: | How was this vulnerability discovered? @@ -153,10 +159,12 @@ discovered: If there is no evidence as to how this vulnerability was found, then please explain where you looked. - answer: - automated: - contest: - developer: + answer: | + The commit that fixed the vulnerability states the vulnerability was + reported and tested by CAI Qian . + automated: false + contest: false + developer: false autodiscoverable: instructions: | Is it plausible that a fully automated tool could have discovered @@ -173,8 +181,17 @@ autodiscoverable: The answer field should be boolean. In answer_note, please explain why you come to that conclusion. - note: - answer: + note: | + The vulnerability involves a race condition and NULL pointer dereference. + Detection tools such as fuzzers, static analysis tools, and stress testing + could potentially identify these issues. + + Fuzzers can detect unexpected behavior caused by race conditions and NULL + pointer dereferences. Static analysis tools can identify code paths that may + lead to race conditions and NULL pointer dereferences. Stress testing can + expose potential race condition issues by simulating real-world scenarios + and usage patterns. + answer: true specification: instructions: | Is there mention of a violation of a specification? For example, the POSIX @@ -190,8 +207,8 @@ specification: The answer field should be boolean. In answer_note, please explain why you come to that conclusion. - note: - answer: + note: No mention of a violation of a specification found. + answer: false subsystem: question: | What subsystems was the mistake in? These are WITHIN linux kernel @@ -225,8 +242,10 @@ subsystem: e.g. name: ["subsystemA", "subsystemB"] # ok name: subsystemA # also ok - name: - note: + name: ["sf", "cifs"] + note: | + Looking at the file path on github. + (https://github.com/torvalds/linux/commit/ea702b80e0bbb2448e201472127288beb82ca2fe) interesting_commits: question: | Are there any interesting commits between your VCC(s) and fix(es)? @@ -241,10 +260,10 @@ interesting_commits: * Other commits that fixed a similar issue as this vulnerability * Anything else you find interesting. commits: - - commit: - note: - - commit: - note: + - commit: + note: + - commit: + note: i18n: question: | Was the feature impacted by this vulnerability about internationalization @@ -257,8 +276,12 @@ i18n: Answer should be true or false Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + The vulnerability primarily involves a race condition in the Linux kernel, + which could potentially lead to system failure due to NULL pointer + dereference. It does not pertain to the kernel's internationalization + features. sandbox: question: | Did this vulnerability violate a sandboxing feature that the system @@ -272,8 +295,11 @@ sandbox: Answer should be true or false Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + This vulnerability does not violate a sandboxing feature. The issue is + due to a race condition that can cause a failure in the system and open up + to a NULL pointer dereference. ipc: question: | Did the feature that this vulnerability affected use inter-process @@ -284,8 +310,11 @@ ipc: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: true + note: | + This vulnerability is caused by a race condition when the ssocket is NULL + when the system tries to connect. The code checks to see if the ssocket is + available too late causing it to fail. discussion: question: | Was there any discussion surrounding this? @@ -311,9 +340,12 @@ discussion: Put any links to disagreements you found in the notes section, or any other comment you want to make. - discussed_as_security: - any_discussion: - note: + discussed_as_security: false + any_discussion: false + note: | + There are notes on the commit that fixes the issue but I could not find any + discussion regarding the issues brought up. + (https://github.com/torvalds/linux/commit/ea702b80e0bbb2448e201472127288beb82ca2fe) vouch: question: | Was there any part of the fix that involved one person vouching for @@ -326,8 +358,11 @@ vouch: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: true + note: | + The commit that fixed the issue was signed off by Steve French , + on Dec 30th 2012 Commit ID: + (ea702b80e0bbb2448e201472127288beb82ca2fe). stacktrace: question: | Are there any stacktraces in the bug reports? @@ -341,9 +376,10 @@ stacktrace: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - any_stacktraces: - stacktrace_with_fix: - note: + any_stacktraces: false + stacktrace_with_fix: false + note: | + I checked the changelog and github commits and could not find a stacktrace. forgotten_check: question: | Does the fix for the vulnerability involve adding a forgotten check? @@ -362,8 +398,12 @@ forgotten_check: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + While the fix involves an if statement, the issue wasn't a forgotten check, + but the placement of the check. The if statement was moved to check for + NULL earlier in the data flow. This prevents a race condition and potential + NULL pointer dereference. order_of_operations: question: | Does the fix for the vulnerability involve correcting an order of @@ -375,8 +415,13 @@ order_of_operations: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: true + note: | + The fix for the vulnerability involves moving around an if statement that + check to see if the ssocket is NULL in smb_send_kvec to smb_send_rqst. + The initial if statement was checking for NULL too late in the data flow. + This means that they needed the NULL check to be move to much earlier in + the data flow. lessons: question: | Are there any common lessons we have learned from class that apply to this @@ -454,7 +499,15 @@ mistakes: Write a thoughtful entry here that people in the software engineering industry would find interesting. - answer: + answer: | + The mistake that caused this issue seems to be on misunderstanding of the + systems flow and how things interact inside. As well as a poorly designed + system that led to this issue. The developer (Jeff Layton + ) that fixed the issue says something simular to this, + saying that the ssocket locking rules documentation is unclear. They also + think the code seems like it could benefit refactoring the code for how + the socket handling should behave. + (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea702b80e0bbb2448e201472127288beb82ca2fe) CWE_instructions: | Please go to http://cwe.mitre.org and find the most specific, appropriate CWE entry that describes your vulnerability. We recommend going to @@ -471,13 +524,11 @@ CWE_instructions: | CWE: [123, 456] # also ok CWE: 123 # also ok CWE: -- 362 -CWE_note: | - CWE as registered in the NVD. If you are curating, check that this - is correct and replace this comment with "Manually confirmed". + - ["362", "476"] +CWE_note: Manually Confirmed nickname_instructions: | A catchy name for this vulnerability that would draw attention it. If the report mentions a nickname, use that. Must be under 30 characters. Optional. -nickname: -CVSS: +nickname: RaceCrash3302 +CVSS: CVSS:2.0/AV:L/AC:M/Au:N/C:P/I:P/A:P diff --git a/cves/kernel/CVE-2016-8630.yml b/cves/kernel/CVE-2016-8630.yml index 354e56618..7fa30edaf 100644 --- a/cves/kernel/CVE-2016-8630.yml +++ b/cves/kernel/CVE-2016-8630.yml @@ -19,7 +19,7 @@ curated_instructions: | This will enable additional editorial checks on this file to make sure you fill everything out properly. If you are a student, we cannot accept your work as finished unless curated is properly updated. -curation_level: 0 +curation_level: 2 reported_instructions: | What date was the vulnerability reported to the security team? Look at the security bulletins and bug reports. It is not necessarily the same day that @@ -34,11 +34,11 @@ announced_instructions: | This is not the same as published date in the NVD - that is below. Please enter your date in YYYY-MM-DD format. -announced_date: '2016-11-28' +announced_date: "2016-11-28" published_instructions: | Is there a published fix or patch date for this vulnerability? Please enter your date in YYYY-MM-DD format. -published_date: '2016-11-28' +published_date: "2016-11-28" description_instructions: | You can get an initial description from the CVE entry on cve.mitre.org. These descriptions are a fine start, but they can be kind of jargony. @@ -55,7 +55,13 @@ description_instructions: | Your target audience is people just like you before you took any course in security -description: +description: | + This vulenrability could trigger a NULL pointer dereference due to improper + access control. The code accesses a part of memory that does not exist + causing the NULL poninter dereference. This causes the system to become + unresponsive. A fix was developed by RedHat to prevent this issue from + causing problems in Linux. By adding a checks for memopp before + dereferencing. bounty_instructions: | If you came across any indications that a bounty was paid out for this vulnerability, fill it out here. Or correct it if the information already here @@ -68,7 +74,7 @@ reviews: [] bugs_instructions: | What bugs are involved in this vulnerability? - Please list bug IDs to https://bugzilla.kernel.org/ + Please list bug IDs to https://bugziCVE-lla.kernel.org/ Bug ID's can appear in several places: * Mentioned in commit messages @@ -84,14 +90,8 @@ fixes_instructions: | Place any notes you would like to make in the notes field. fixes: -- commit: - note: -- commit: - note: -- commit: d9092f52d7e61dd1557f2db2400ddb430e85937e - note: | - Taken from NVD references list with Git commit. If you are - curating, please fact-check that this commit fixes the vulnerability and replace this comment with 'Manually confirmed' + - commit: d9092f52d7e61dd1557f2db2400ddb430e85937e + note: Manually Confirmed vcc_instructions: | The vulnerability-contributing commits. @@ -105,8 +105,8 @@ vcc_instructions: | Place any notes you would like to make in the notes field. vccs: -- commit: 41061cdb98a0bec464278b4db8e894a3121671f5 - note: Discovered automatically by archeogit. + - commit: 41061cdb98a0bec464278b4db8e894a3121671f5 + note: Manually Confirmed upvotes_instructions: | For the first round, ignore this upvotes number. @@ -114,7 +114,7 @@ upvotes_instructions: | upvotes to each vulnerability you see. Your peers will tell you how interesting they think this vulnerability is, and you'll add that to the upvotes score on your branch. -upvotes: +upvotes: 1 unit_tested: question: | Were automated unit tests involved in this vulnerability? @@ -129,10 +129,14 @@ unit_tested: For the fix_answer below, check if the fix for the vulnerability involves adding or improving an automated test to ensure this doesn't happen again. - code: - code_answer: - fix: - fix_answer: + code: false + code_answer: | + I was unable to find any unit tests for this module. It does not seem like + any automated tests were made to ensure this does not happen again. + fix: false + fix_answer: | + I was unable to find any unit tests for this module. It does not seem like + any automated tests were made to ensure this does not happen again. discovered: question: | How was this vulnerability discovered? @@ -147,10 +151,17 @@ discovered: If there is no evidence as to how this vulnerability was found, then please explain where you looked. - answer: - automated: - contest: - developer: + answer: | + The vulnerability's discovery method remains unclear after examining the bug + report (https://bugzilla.redhat.com/show_bug.cgi?id=1393350), GitHub commit + (https://github.com/torvalds/linux/commit/d9092f52d7e61dd1557f2db2400ddb430e85937e), + and change log + (https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.7). It + might have been detected early via code-review or found later without + disclosure of the discovery method. No concrete evidence was found. + automated: false + contest: false + developer: false autodiscoverable: instructions: | Is it plausible that a fully automated tool could have discovered @@ -167,8 +178,17 @@ autodiscoverable: The answer field should be boolean. In answer_note, please explain why you come to that conclusion. - note: - answer: + note: | + The vulnerability involves a NULL pointer dereference due to improper + access control. Detection tools such as fuzzers, static analysis tools, + and compilere warnings could potentially identify these issues. + + Fuzzers can detect unexpected behavior caused by NULL pointer + dereferences. Static analysis tools can identify code paths that may + lead to NULL pointer dereferences. Compiler warnings can highlight + potential issues in the developers code where potential NULL pointer + dereferences could occur. + answer: true specification: instructions: | Is there mention of a violation of a specification? For example, the POSIX @@ -184,8 +204,10 @@ specification: The answer field should be boolean. In answer_note, please explain why you come to that conclusion. - note: - answer: + note: | + Looking through the all the artifacts I could find I did not find + any that mentioned a violation. + answer: false subsystem: question: | What subsystems was the mistake in? These are WITHIN linux kernel @@ -219,8 +241,10 @@ subsystem: e.g. name: ["subsystemA", "subsystemB"] # ok name: subsystemA # also ok - name: - note: + name: ["x86", "kvm"] + note: | + Looking at the file path on github. + (https://github.com/torvalds/linux/commit/d9092f52d7e61dd1557f2db2400ddb430e85937e) interesting_commits: question: | Are there any interesting commits between your VCC(s) and fix(es)? @@ -235,10 +259,10 @@ interesting_commits: * Other commits that fixed a similar issue as this vulnerability * Anything else you find interesting. commits: - - commit: - note: - - commit: - note: + - commit: + note: + - commit: + note: i18n: question: | Was the feature impacted by this vulnerability about internationalization @@ -251,8 +275,11 @@ i18n: Answer should be true or false Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + The vulnerability does not relate to internationalization features in the + Linux kernel. The main vulnerability focuses on a NULL pointer dereference + flaw when the KVM is enabled on the x86 platform. sandbox: question: | Did this vulnerability violate a sandboxing feature that the system @@ -266,8 +293,11 @@ sandbox: Answer should be true or false Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + This vulnerability does not violate a sandboxing feature. The issue is only + due to a NULL pointer dereference due to a failure to check before + dereferencing. ipc: question: | Did the feature that this vulnerability affected use inter-process @@ -278,8 +308,11 @@ ipc: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + This vulnerability is not affected by inter-process communication. The + issue is only due to a NULL pointer dereference due to a failure to check + before dereferencing. discussion: question: | Was there any discussion surrounding this? @@ -305,9 +338,10 @@ discussion: Put any links to disagreements you found in the notes section, or any other comment you want to make. - discussed_as_security: - any_discussion: - note: + discussed_as_security: false + any_discussion: false + note: No discussions were identified. + vouch: question: | Was there any part of the fix that involved one person vouching for @@ -320,8 +354,12 @@ vouch: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: true + note: | + The commit that fixed the issue was signed off by Owen Hofmann , + Paolo Bonzini , and Greg Kroah-Hartman + on Nov 10th 2016 Commit ID: + (0c879624701dc719022950552227516ac87a10d5). stacktrace: question: | Are there any stacktraces in the bug reports? @@ -335,9 +373,10 @@ stacktrace: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - any_stacktraces: - stacktrace_with_fix: - note: + any_stacktraces: false + stacktrace_with_fix: false + note: | + I checked the changelog and github commits and could not find a stacktrace. forgotten_check: question: | Does the fix for the vulnerability involve adding a forgotten check? @@ -356,8 +395,11 @@ forgotten_check: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: true + note: | + The commit that added the issue was a fix to the conditional removing + other checks, which caused the issue. The fix added a check for memopp + before dereference to prevent a NULL pointer dereference. order_of_operations: question: | Does the fix for the vulnerability involve correcting an order of @@ -369,8 +411,11 @@ order_of_operations: Answer must be true or false. Write a note about how you came to the conclusions you did, regardless of what your answer was. - answer: - note: + answer: false + note: | + This fix did not involved correcting the order of operations. All + that was changed was an additional check in an if statement that checks + for memopp before dereferencing. lessons: question: | Are there any common lessons we have learned from class that apply to this @@ -448,7 +493,13 @@ mistakes: Write a thoughtful entry here that people in the software engineering industry would find interesting. - answer: + answer: | + The commit that caused this issue was a “fix” to the code that was + originally there. This seems to have been a mistake in understanding + how the code worked or what assumptions were incorrect. The initial + fix tried removing "unneeded" checks before dereference. But this allows + for a NULL pointer dereference to occur. + CWE_instructions: | Please go to http://cwe.mitre.org and find the most specific, appropriate CWE entry that describes your vulnerability. We recommend going to @@ -465,13 +516,11 @@ CWE_instructions: | CWE: [123, 456] # also ok CWE: 123 # also ok CWE: -- 284 -CWE_note: | - CWE as registered in the NVD. If you are curating, check that this - is correct and replace this comment with "Manually confirmed". + - ["284", "476"] +CWE_note: Manually Confirmed nickname_instructions: | A catchy name for this vulnerability that would draw attention it. If the report mentions a nickname, use that. Must be under 30 characters. Optional. -nickname: -CVSS: +nickname: KernelCrash8630 +CVSS: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H