Showing posts with label Red Hat Linux. Show all posts
Showing posts with label Red Hat Linux. Show all posts

Friday, January 5, 2018

Massive Intel CPU Bug Leaves Kernel Vulnerable, Slows Performance - Intel CPU kernel memory leak vulnerability #Spectre (CVE-2017-5753 , CVE-2017-5715) and #Meltdown (CVE-2017-5754) #SideChannelAttack

The hotfix from Microsoft, RedHat and VMware at the following:

platform

solution

Windows2008

Not available

https://support.microsoft.com/en-us/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution-s

Windows2008R2

KB4056897

https://support.microsoft.com/en-us/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution-s

Windows2012

Not available

https://support.microsoft.com/en-us/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution-s

Windows2012R2

KB4056898

https://support.microsoft.com/en-us/help/4072698/windows-server-guidance-to-protect-against-the-speculative-execution-s

ESXi5.5

ESXi550-201709101-SG

https://www.vmware.com/security/advisories/VMSA-2018-0002.html

ESXi6.5

ESXi650-201712101-SG

https://www.vmware.com/security/advisories/VMSA-2018-0002.html

Redhat7

RHSA-2018:0007

https://access.redhat.com/security/vulnerabilities/speculativeexecution

Redhat6

RHSA-2018:0008

https://access.redhat.com/security/vulnerabilities/speculativeexecution


For windows patch deployment, if using Mcafee, it need to update register key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" first.

https://support.microsoft.com/en-us/help/4056898

image


WINDOWS
About the intel vulnerability on Windows (not Azure specific), pls find our published info and patches below.
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV180002
Update for Windows Server 2016 is available here:
https://support.microsoft.com/en-us/help/4056890
Windows 10 1709 (Fall Creators Update):
https://support.microsoft.com/en-us/help/4056892
Updates for other OS versions:
http://www.catalog.update.microsoft.com/Search.aspx?q=2018-01


Windows Client Guidance for IT Pros to protect against speculative execution side-channel vulnerabilities

https://support.microsoft.com/en-us/help/4073119/windows-client-guidance-for-it-pros-to-protect-against-speculative-exe?ranMID=24542&ranEAID=nOD%2FrLJHOac&ranSiteID=nOD_rLJHOac-9l5jOPaPqmkvZwSt.6rR0w&tduid=(72882831a6cc2b13e2bb4cdc8c5e787f)(256380)(2459594)(nOD_rLJHOac-9l5jOPaPqmkvZwSt.6rR0w)()


RedHat Enterprise Linux:
The vulnerability has been assigned CVE-2017-5754, CVE-2017-5753 & CVE-2017-5715. This issue was publicly disclosed on Wednesday, January 3, 2018 and is rated as Important [1].
Kernel Side-Channel Attacks (CVE-2017-5754, CVE-2017-5753, & CVE-2017-5715)
https://access.redhat.com/security/vulnerabilities/speculativeexecution


Reference:
https://www.extremetech.com/computing/261364-massive-intel-cpu-bug-leaves-kernel-vulnerable-reduce-performance
https://www.theregister.co.uk/2018/01/02/intel_cpu_design_flaw/
https://www.theverge.com/2018/1/3/16844630/intel-processor-security-flaw-bug-kernel-windows-linux
https://www.techpowerup.com/240174/intel-secretly-firefighting-a-major-cpu-bug-affecting-datacenters
https://news.xfastest.com/intel/44421/intel-memory-leak-bug/
https://hothardware.com/news/intel-cpu-bug-kernel-memory-isolation-linux-windows-macos


There are more detail about the vulnerability:
Google Project Zero blog:
https://googleprojectzero.blogspot.hk/2018/01/reading-privileged-memory-with-side.html
Research paper:
https://spectreattack.com/spectre.pdf
https://meltdownattack.com/meltdown.pdf

Reference:
http://blog.cyberus-technology.de/posts/2018-01-03-meltdown.html
AMD Respond:
http://www.amd.com/en/corporate/speculative-execution
ARM Security:
https://developer.arm.com/support/security-update
Meltdown in Action: Dumping memory
https://m.youtube.com/watch?v=bReA1dvGJ6Y

Spectre and Meltdown processor security flaws – explained

https://www.theguardian.com/technology/2018/jan/04/meltdown-spectre-computer-processor-intel-security-flaws-explainer

How to protect your PC against the major ‘Meltdown’ CPU security flaw

https://www.theverge.com/2018/1/4/16848976/how-to-protect-windows-pc-meltdown-security-flaw



#Spectre #CVE20175715   #CVE20175753
#Meltdown #CVE20175754
#SideChannelAttack

Print Friendly and PDF
Share/Bookmark

Sunday, October 11, 2009

Grant root privilege to user account in RHEL

1. create the user account call "normaluser"



# useradd -d /home/user normaluser

2. then as root run:



# su -

# visudo


3. in the file you will see


root ALL=(ALL) ALL


4. add a line below that line that has


normaluser ALL=(ALL) ALL


* replace "normaluser" with the username you want.


then when you want to do some admin level work you would just use "sudo" before the command.


e.g. sudo /sbin/shutdown -r now

Print Friendly and PDF
Share/Bookmark

Configuring the Boot Loader to boot the old kernel


Configuring the Boot Loader


Now that you have recompiled your kernel, you must configure the boot loader to boot the new kernel. This is a crucial step. If you do not perform this step or if you perform it incorrectly, you will not be able to boot your system. If this happens, boot your system with the boot diskette you created earlier and try configuring the boot loader again. If your boot diskette does not work, refer to Chapter 3 for more information about rescue mode.

In order to provide a redundant boot source to protect from a possible error in a new kernel, you should keep the original kernel available. During the installation of Red Hat Linux 7.3, you had the option to choose either GRUB or LILO as your boot loader. Refer to the appropriate section that follows.

GRUB


If you selected GRUB as your boot loader, modify /boot/grub/grub.conf. The default GRUB configuration file looks similar to the following:






# NOTICE:  You have a /boot partition.  This means that
# all kernel paths are relative to /boot/
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Linux (2.4.18-0.12)
root (hd0,0)
kernel /vmlinuz-2.4.18-0.12 ro root=/dev/hda3
initrd /initrd-2.4.18-0.12.img


If you created a separate /boot partition, the paths to the kernel and initrd image are relative to the /boot partition.

To add your new kernel to GRUB, copy the existing title section to a new one and modify it to boot your new kernel image (and initrd image if you have any SCSI devices and have created an initrd image). Be sure the title of the new section is different from the title of the section to boot the old kernel. By default, Red Hat Linux uses Red Hat Linux and the kernel version in parentheses to differentiate between different kernels for GRUB to boot. In our example, the new /boot/grub/grub.conf file would look like the following:






# NOTICE:  You have a /boot partition.  This means that
# all kernel paths are relative to /boot/
default=0
timeout=30
splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Linux (2.4.18-0.12-jul2001)
root (hd0,0)
kernel /vmlinuz-2.4.18-0.12-jul2001 ro root=/dev/hda3
initrd /initrd-2.4.18-0.12-jul2001.img

title Red Hat Linux (2.4.18-0.12)
root (hd0,0)
kernel /vmlinuz-2.4.18-0.12 ro root=/dev/hda3
initrd /initrd-2.4.18-0.12.img


The default boot entry is set to number 0. To make your new kernel the default, either place its section first or change the default entry number to the appropriate number (remember that it starts counting with 0). For GRUB, you do not need to run any commands after modifying the configuration file.

From now on, when the system boots you will see the following GRUB boot options:






Red Hat Linux (2.4.18-0.12-jul2001)
Red Hat Linux (2.4.18-0.12)


To boot the default kernel, press [Enter] or wait for it to time out. If you want to boot the old kernel, select it and press [Enter].

You can begin testing your new kernel by rebooting your computer and watching the messages to ensure that your hardware is detected properly.


LILO


To configure LILO to boot the new kernel, you need to update the /etc/lilo.conf file and run the command /sbin/lilo -v.

The default /etc/lilo.conf file looks similar to the following:






boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinuz-2.4.18-0.12
label=linux
initrd=initrd-2.4.18-0.12.img
read-only
root=/dev/hda5


To add your new kernel to LILO, copy the existing image section to a new one and modify it to boot your new kernel image (and initrd image if you have any SCSI devices and have created an initrd image). Also, rename the label of the old kernel to something such as linux-old. Your /etc/lilo.conf should look similar to the following:






boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinuz-2.4.18-0.12-jul2001
label=linux
initrd=initrd-2.4.18-0.12-jul2001.img
read-only
root=/dev/hda5

image=/boot/vmlinuz-2.4.18-0.12
label=linux-old
initrd=initrd-2.4.18-0.12.img
read-only
root=/dev/hda5


To activate your changes, run the command /sbin/lilo -v. If all goes well, you will see output similar to the following:






LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Mapping message file /boot/message
Boot image: /boot/vmlinuz-2.4.18-0.12
Added linux *
Boot image: /boot/vmlinuz-2.4.18-0.12-jul2001
Added linux-old
Writing boot sector.


Be sure the messages contains Writing boot sector. The * after linux means that the section labeled linux is the default kernel that LILO will boot.

From now on, when the system boots you will see linux and linux-old as LILO boot options.

To boot the new kernel (linux) simply press [Enter], or wait for LILO to time out. If you want to boot the old kernel (linux-old), select linux-old and press [Enter].

You can begin testing your new kernel by rebooting your computer and watching the messages to ensure your hardware is detected properly.

http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-custom-kernel-bootloader.html

Print Friendly and PDF
Share/Bookmark